.class public final Lcom/wqmobile/sdk/a/a;
.super Ljava/lang/Object;


# static fields
.field private static b:Lcom/wqmobile/sdk/a/a;

.field private static c:Lcom/wqmobile/sdk/model/AppSettings;

.field private static h:I

.field private static i:Lcom/wqmobile/sdk/model/CacheOfflineADs;

.field private static j:Lcom/wqmobile/sdk/model/OfflineADs;

.field private static k:Ljava/lang/Boolean;

.field private static l:I

.field private static m:Ljava/lang/Integer;

.field private static v:Ljava/util/List;

.field private static w:Ljava/util/List;


# instance fields
.field private A:Ljava/lang/String;

.field private B:I

.field private C:Landroid/app/ActivityManager;

.field private D:Z

.field a:Lcom/wqmobile/sdk/pojoxml/core/PojoXml;

.field private d:Ljava/lang/String;

.field private e:Lcom/wqmobile/sdk/pojoxml/core/PojoXmlFactory;

.field private f:Ljava/lang/Integer;

.field private g:Landroid/content/Context;

.field private n:Lcom/wqmobile/sdk/a/c;

.field private o:Lcom/wqmobile/sdk/protocol/c;

.field private p:Ljava/lang/Boolean;

.field private q:I

.field private r:I

.field private s:Ljava/lang/String;

.field private t:Ljava/lang/Boolean;

.field private u:Ljava/util/List;

.field private x:Landroid/os/Handler;

.field private y:Ljava/util/HashMap;

.field private z:Lcom/wqmobile/sdk/a/b;


# direct methods
.method static constructor <clinit>()V
    .locals 2

    const/4 v1, 0x0

    sput v1, Lcom/wqmobile/sdk/a/a;->h:I

    new-instance v0, Lcom/wqmobile/sdk/model/CacheOfflineADs;

    invoke-direct {v0}, Lcom/wqmobile/sdk/model/CacheOfflineADs;-><init>()V

    sput-object v0, Lcom/wqmobile/sdk/a/a;->i:Lcom/wqmobile/sdk/model/CacheOfflineADs;

    invoke-static {v1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    sput-object v0, Lcom/wqmobile/sdk/a/a;->k:Ljava/lang/Boolean;

    sput v1, Lcom/wqmobile/sdk/a/a;->l:I

    const/4 v0, 0x0

    sput-object v0, Lcom/wqmobile/sdk/a/a;->m:Ljava/lang/Integer;

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    sput-object v0, Lcom/wqmobile/sdk/a/a;->v:Ljava/util/List;

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    sput-object v0, Lcom/wqmobile/sdk/a/a;->w:Ljava/util/List;

    return-void
.end method

.method private constructor <init>(Landroid/content/Context;)V
    .locals 3

    const/4 v1, 0x0

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    invoke-static {}, Lcom/wqmobile/sdk/pojoxml/core/PojoXmlFactory;->getInstance()Lcom/wqmobile/sdk/pojoxml/core/PojoXmlFactory;

    move-result-object v0

    iput-object v0, p0, Lcom/wqmobile/sdk/a/a;->e:Lcom/wqmobile/sdk/pojoxml/core/PojoXmlFactory;

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v0

    iput-object v0, p0, Lcom/wqmobile/sdk/a/a;->f:Ljava/lang/Integer;

    invoke-static {v1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    iput-object v0, p0, Lcom/wqmobile/sdk/a/a;->p:Ljava/lang/Boolean;

    iput v1, p0, Lcom/wqmobile/sdk/a/a;->q:I

    iput v1, p0, Lcom/wqmobile/sdk/a/a;->r:I

    const-string v0, ""

    iput-object v0, p0, Lcom/wqmobile/sdk/a/a;->s:Ljava/lang/String;

    invoke-static {v1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    iput-object v0, p0, Lcom/wqmobile/sdk/a/a;->t:Ljava/lang/Boolean;

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/wqmobile/sdk/a/a;->u:Ljava/util/List;

    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    iput-object v0, p0, Lcom/wqmobile/sdk/a/a;->y:Ljava/util/HashMap;

    sget-object v0, Lcom/wqmobile/sdk/a/b;->a:Lcom/wqmobile/sdk/a/b;

    iput-object v0, p0, Lcom/wqmobile/sdk/a/a;->z:Lcom/wqmobile/sdk/a/b;

    const-string v0, ""

    iput-object v0, p0, Lcom/wqmobile/sdk/a/a;->A:Ljava/lang/String;

    iput v1, p0, Lcom/wqmobile/sdk/a/a;->B:I

    iput-boolean v1, p0, Lcom/wqmobile/sdk/a/a;->D:Z

    invoke-static {p1}, Lcom/wqmobile/sdk/b/a;->a(Landroid/content/Context;)Lcom/wqmobile/sdk/model/CacheOfflineADs;

    move-result-object v0

    sput-object v0, Lcom/wqmobile/sdk/a/a;->i:Lcom/wqmobile/sdk/model/CacheOfflineADs;

    invoke-static {p1}, Lcom/wqmobile/sdk/b/a;->b(Landroid/content/Context;)Lcom/wqmobile/sdk/model/OfflineADs;

    move-result-object v0

    sput-object v0, Lcom/wqmobile/sdk/a/a;->j:Lcom/wqmobile/sdk/model/OfflineADs;

    new-instance v0, Lcom/wqmobile/sdk/a/c;

    invoke-direct {v0, p0}, Lcom/wqmobile/sdk/a/c;-><init>(Lcom/wqmobile/sdk/a/a;)V

    iput-object v0, p0, Lcom/wqmobile/sdk/a/a;->n:Lcom/wqmobile/sdk/a/c;

    :try_start_0
    invoke-static {p1}, Lcom/wqmobile/sdk/protocol/c;->a(Landroid/content/Context;)Lcom/wqmobile/sdk/protocol/c;

    move-result-object v0

    iput-object v0, p0, Lcom/wqmobile/sdk/a/a;->o:Lcom/wqmobile/sdk/protocol/c;

    iget-object v0, p0, Lcom/wqmobile/sdk/a/a;->o:Lcom/wqmobile/sdk/protocol/c;

    iget-object v1, p0, Lcom/wqmobile/sdk/a/a;->n:Lcom/wqmobile/sdk/a/c;

    invoke-virtual {v0, v1}, Lcom/wqmobile/sdk/protocol/c;->addObserver(Ljava/util/Observer;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :goto_0
    iput-object p1, p0, Lcom/wqmobile/sdk/a/a;->g:Landroid/content/Context;

    const-string v0, "activity"

    invoke-virtual {p1, v0}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/app/ActivityManager;

    iput-object v0, p0, Lcom/wqmobile/sdk/a/a;->C:Landroid/app/ActivityManager;

    new-instance v0, Lcom/wqmobile/sdk/a/d;

    invoke-direct {v0, p0}, Lcom/wqmobile/sdk/a/d;-><init>(Lcom/wqmobile/sdk/a/a;)V

    invoke-virtual {v0}, Lcom/wqmobile/sdk/a/d;->start()V

    return-void

    :catch_0
    move-exception v0

    const/4 v1, 0x0

    iput-object v1, p0, Lcom/wqmobile/sdk/a/a;->o:Lcom/wqmobile/sdk/protocol/c;

    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "method:AdsService:"

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Ljava/lang/Exception;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/wqmobile/sdk/a/f;->a(Ljava/lang/String;)V

    goto :goto_0
.end method

.method public static a(Ljava/sql/Timestamp;Ljava/sql/Timestamp;)J
    .locals 4

    const-wide/16 v0, 0x0

    if-eqz p1, :cond_0

    if-eqz p0, :cond_0

    invoke-virtual {p1}, Ljava/sql/Timestamp;->getTime()J

    move-result-wide v0

    invoke-virtual {p0}, Ljava/sql/Timestamp;->getTime()J

    move-result-wide v2

    sub-long/2addr v0, v2

    :cond_0
    return-wide v0
.end method

.method static synthetic a(Lcom/wqmobile/sdk/a/a;)Landroid/content/Context;
    .locals 1

    iget-object v0, p0, Lcom/wqmobile/sdk/a/a;->g:Landroid/content/Context;

    return-object v0
.end method

.method public static a([B)Landroid/graphics/drawable/Drawable;
    .locals 2

    const/4 v0, 0x0

    if-eqz p0, :cond_0

    const/4 v0, 0x0

    array-length v1, p0

    invoke-static {p0, v0, v1}, Landroid/graphics/BitmapFactory;->decodeByteArray([BII)Landroid/graphics/Bitmap;

    move-result-object v0

    new-instance v1, Landroid/graphics/drawable/BitmapDrawable;

    invoke-direct {v1, v0}, Landroid/graphics/drawable/BitmapDrawable;-><init>(Landroid/graphics/Bitmap;)V

    move-object v0, v1

    :cond_0
    return-object v0
.end method

.method public static declared-synchronized a(Landroid/content/Context;)Lcom/wqmobile/sdk/a/a;
    .locals 2

    const-class v0, Lcom/wqmobile/sdk/a/a;

    monitor-enter v0

    :try_start_0
    sget-object v1, Lcom/wqmobile/sdk/a/a;->b:Lcom/wqmobile/sdk/a/a;

    if-nez v1, :cond_0

    new-instance v1, Lcom/wqmobile/sdk/a/a;

    invoke-direct {v1, p0}, Lcom/wqmobile/sdk/a/a;-><init>(Landroid/content/Context;)V

    sput-object v1, Lcom/wqmobile/sdk/a/a;->b:Lcom/wqmobile/sdk/a/a;

    :goto_0
    sget-object v1, Lcom/wqmobile/sdk/a/a;->b:Lcom/wqmobile/sdk/a/a;
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    monitor-exit v0

    return-object v1

    :cond_0
    :try_start_1
    sget-object v1, Lcom/wqmobile/sdk/a/a;->b:Lcom/wqmobile/sdk/a/a;

    iput-object p0, v1, Lcom/wqmobile/sdk/a/a;->g:Landroid/content/Context;
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    goto :goto_0

    :catchall_0
    move-exception v1

    monitor-exit v0

    throw v1
.end method

.method private static a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lcom/wqmobile/sdk/model/NetworkDevice;
    .locals 1

    new-instance v0, Lcom/wqmobile/sdk/model/NetworkDevice;

    invoke-direct {v0}, Lcom/wqmobile/sdk/model/NetworkDevice;-><init>()V

    invoke-virtual {v0, p0}, Lcom/wqmobile/sdk/model/NetworkDevice;->setConnectionType(Ljava/lang/String;)V

    invoke-virtual {v0, p1}, Lcom/wqmobile/sdk/model/NetworkDevice;->setStatus(Ljava/lang/String;)V

    invoke-virtual {v0, p3}, Lcom/wqmobile/sdk/model/NetworkDevice;->setIP(Ljava/lang/String;)V

    invoke-virtual {v0, p4}, Lcom/wqmobile/sdk/model/NetworkDevice;->setMAC(Ljava/lang/String;)V

    invoke-virtual {v0, p2}, Lcom/wqmobile/sdk/model/NetworkDevice;->setSpeed(Ljava/lang/String;)V

    return-object v0
.end method

.method private a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Integer;Ljava/lang/String;)Ljava/lang/String;
    .locals 2

    new-instance v0, Lcom/wqmobile/sdk/model/UserResponse;

    invoke-direct {v0}, Lcom/wqmobile/sdk/model/UserResponse;-><init>()V

    invoke-virtual {v0, p1}, Lcom/wqmobile/sdk/model/UserResponse;->setAdID(Ljava/lang/String;)V

    sget-object v1, Lcom/wqmobile/sdk/a/a;->c:Lcom/wqmobile/sdk/model/AppSettings;

    invoke-virtual {v1}, Lcom/wqmobile/sdk/model/AppSettings;->getAppID()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/wqmobile/sdk/model/UserResponse;->setAppID(Ljava/lang/String;)V

    invoke-virtual {v0, p2}, Lcom/wqmobile/sdk/model/UserResponse;->setResponseTime(Ljava/lang/String;)V

    invoke-virtual {v0, p3}, Lcom/wqmobile/sdk/model/UserResponse;->setResponseType(Ljava/lang/String;)V

    invoke-virtual {v0, p4}, Lcom/wqmobile/sdk/model/UserResponse;->setResponseViewingTime(Ljava/lang/String;)V

    invoke-virtual {v0, p5}, Lcom/wqmobile/sdk/model/UserResponse;->setResponseViewingTimes(Ljava/lang/Integer;)V

    invoke-static {p6}, Lcom/wqmobile/sdk/pojoxml/util/StringUtil;->fillInCData(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/wqmobile/sdk/model/UserResponse;->setResponseParameters(Ljava/lang/String;)V

    iget-object v1, p0, Lcom/wqmobile/sdk/a/a;->e:Lcom/wqmobile/sdk/pojoxml/core/PojoXmlFactory;

    invoke-virtual {v1}, Lcom/wqmobile/sdk/pojoxml/core/PojoXmlFactory;->createPojoXml()Lcom/wqmobile/sdk/pojoxml/core/PojoXml;

    move-result-object v1

    iput-object v1, p0, Lcom/wqmobile/sdk/a/a;->a:Lcom/wqmobile/sdk/pojoxml/core/PojoXml;

    iget-object v1, p0, Lcom/wqmobile/sdk/a/a;->a:Lcom/wqmobile/sdk/pojoxml/core/PojoXml;

    invoke-interface {v1, v0}, Lcom/wqmobile/sdk/pojoxml/core/PojoXml;->getXml(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public static a(Landroid/content/Context;Ljava/lang/String;)V
    .locals 3

    invoke-virtual {p1}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v0

    const-string v1, "http"

    invoke-virtual {v0, v1}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_0

    const-string v0, "WQUrl"

    invoke-static {v0, p1}, Lcom/wqmobile/sdk/a/f;->a(Ljava/lang/String;Ljava/lang/String;)V

    invoke-static {p1}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v0

    new-instance v1, Landroid/content/Intent;

    const-string v2, "android.intent.action.VIEW"

    invoke-direct {v1, v2, v0}, Landroid/content/Intent;-><init>(Ljava/lang/String;Landroid/net/Uri;)V

    invoke-virtual {p0, v1}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    :cond_0
    return-void
.end method

.method static synthetic a(Lcom/wqmobile/sdk/a/a;Landroid/content/Context;)V
    .locals 12

    const/4 v11, 0x1

    :try_start_0
    iget-object v0, p0, Lcom/wqmobile/sdk/a/a;->e:Lcom/wqmobile/sdk/pojoxml/core/PojoXmlFactory;

    invoke-virtual {v0}, Lcom/wqmobile/sdk/pojoxml/core/PojoXmlFactory;->createPojoXml()Lcom/wqmobile/sdk/pojoxml/core/PojoXml;

    move-result-object v0

    iput-object v0, p0, Lcom/wqmobile/sdk/a/a;->a:Lcom/wqmobile/sdk/pojoxml/core/PojoXml;

    iget-object v0, p0, Lcom/wqmobile/sdk/a/a;->o:Lcom/wqmobile/sdk/protocol/c;

    if-eqz v0, :cond_8

    invoke-direct {p0, p1}, Lcom/wqmobile/sdk/a/a;->c(Landroid/content/Context;)Ljava/lang/Boolean;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    if-eqz v0, :cond_8

    const/4 v0, 0x0

    iget-object v1, p0, Lcom/wqmobile/sdk/a/a;->s:Ljava/lang/String;

    invoke-virtual {v1}, Ljava/lang/String;->length()I

    move-result v1

    if-lez v1, :cond_0

    iget-object v1, p0, Lcom/wqmobile/sdk/a/a;->t:Ljava/lang/Boolean;

    invoke-virtual {v1}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v1

    if-nez v1, :cond_2

    :cond_0
    invoke-direct {p0}, Lcom/wqmobile/sdk/a/a;->i()V

    iget-object v2, p0, Lcom/wqmobile/sdk/a/a;->a:Lcom/wqmobile/sdk/pojoxml/core/PojoXml;

    new-instance v3, Lcom/wqmobile/sdk/model/ClientProfile;

    invoke-direct {v3}, Lcom/wqmobile/sdk/model/ClientProfile;-><init>()V

    sget-object v0, Lcom/wqmobile/sdk/a/a;->c:Lcom/wqmobile/sdk/model/AppSettings;

    invoke-virtual {v0}, Lcom/wqmobile/sdk/model/AppSettings;->getAppID()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v3, v0}, Lcom/wqmobile/sdk/model/ClientProfile;->setAppID(Ljava/lang/String;)V

    const-string v0, "2.0.2"

    invoke-virtual {v3, v0}, Lcom/wqmobile/sdk/model/ClientProfile;->setSDKVersion(Ljava/lang/String;)V

    invoke-virtual {v3}, Lcom/wqmobile/sdk/model/ClientProfile;->getDeviceProfile()Lcom/wqmobile/sdk/model/DeviceProfile;

    move-result-object v4

    iget-object v0, p0, Lcom/wqmobile/sdk/a/a;->g:Landroid/content/Context;

    invoke-direct {p0, v0}, Lcom/wqmobile/sdk/a/a;->d(Landroid/content/Context;)Lcom/wqmobile/sdk/model/PhoneInfo;

    move-result-object v0

    invoke-virtual {v4, v0}, Lcom/wqmobile/sdk/model/DeviceProfile;->setPhoneInfo(Lcom/wqmobile/sdk/model/PhoneInfo;)V

    new-instance v5, Lcom/wqmobile/sdk/model/NetworkDevices;

    invoke-direct {v5}, Lcom/wqmobile/sdk/model/NetworkDevices;-><init>()V

    const-string v6, "Connected"

    new-instance v7, Ljava/util/ArrayList;

    invoke-direct {v7}, Ljava/util/ArrayList;-><init>()V

    iget-object v0, p0, Lcom/wqmobile/sdk/a/a;->g:Landroid/content/Context;

    const-string v1, "phone"

    invoke-virtual {v0, v1}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/telephony/TelephonyManager;

    iget-object v1, p0, Lcom/wqmobile/sdk/a/a;->g:Landroid/content/Context;

    const-string v8, "connectivity"

    invoke-virtual {v1, v8}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Landroid/net/ConnectivityManager;

    const/4 v8, 0x1

    invoke-virtual {v1, v8}, Landroid/net/ConnectivityManager;->getNetworkInfo(I)Landroid/net/NetworkInfo;

    move-result-object v1

    invoke-virtual {v1}, Landroid/net/NetworkInfo;->getState()Landroid/net/NetworkInfo$State;

    move-result-object v1

    sget-object v8, Landroid/net/NetworkInfo$State;->CONNECTED:Landroid/net/NetworkInfo$State;

    if-ne v1, v8, :cond_9

    const-string v1, "WIFI"

    const-string v8, ""

    sget-object v0, Lcom/wqmobile/sdk/a/a;->c:Lcom/wqmobile/sdk/model/AppSettings;

    invoke-virtual {v0}, Lcom/wqmobile/sdk/model/AppSettings;->getIP()Ljava/lang/String;

    move-result-object v9

    iget-object v0, p0, Lcom/wqmobile/sdk/a/a;->g:Landroid/content/Context;

    const-string v10, "wifi"

    invoke-virtual {v0, v10}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/net/wifi/WifiManager;

    invoke-virtual {v0}, Landroid/net/wifi/WifiManager;->getConnectionInfo()Landroid/net/wifi/WifiInfo;

    move-result-object v0

    invoke-virtual {v0}, Landroid/net/wifi/WifiInfo;->getMacAddress()Ljava/lang/String;

    move-result-object v0

    invoke-static {v1, v6, v8, v9, v0}, Lcom/wqmobile/sdk/a/a;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lcom/wqmobile/sdk/model/NetworkDevice;

    move-result-object v0

    invoke-interface {v7, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    :cond_1
    :goto_0
    invoke-interface {v7}, Ljava/util/List;->size()I

    move-result v0

    new-array v0, v0, [Lcom/wqmobile/sdk/model/NetworkDevice;

    invoke-interface {v7, v0}, Ljava/util/List;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;

    invoke-virtual {v5, v0}, Lcom/wqmobile/sdk/model/NetworkDevices;->setDevice([Lcom/wqmobile/sdk/model/NetworkDevice;)V

    invoke-virtual {v4, v5}, Lcom/wqmobile/sdk/model/DeviceProfile;->setNetworkDevices(Lcom/wqmobile/sdk/model/NetworkDevices;)V

    new-instance v0, Lcom/wqmobile/sdk/model/SystemProfile;

    invoke-direct {v0}, Lcom/wqmobile/sdk/model/SystemProfile;-><init>()V

    new-instance v1, Lcom/wqmobile/sdk/model/Platform;

    invoke-direct {v1}, Lcom/wqmobile/sdk/model/Platform;-><init>()V

    const-string v5, "Android"

    invoke-virtual {v1, v5}, Lcom/wqmobile/sdk/model/Platform;->setType(Ljava/lang/String;)V

    sget-object v5, Landroid/os/Build$VERSION;->SDK:Ljava/lang/String;

    invoke-virtual {v1, v5}, Lcom/wqmobile/sdk/model/Platform;->setVersion(Ljava/lang/String;)V

    invoke-virtual {v0, v1}, Lcom/wqmobile/sdk/model/SystemProfile;->setPlatform(Lcom/wqmobile/sdk/model/Platform;)V

    invoke-virtual {v4, v0}, Lcom/wqmobile/sdk/model/DeviceProfile;->setSystemProfile(Lcom/wqmobile/sdk/model/SystemProfile;)V

    new-instance v1, Lcom/wqmobile/sdk/model/HardwareProfile;

    invoke-direct {v1}, Lcom/wqmobile/sdk/model/HardwareProfile;-><init>()V

    invoke-virtual {v1}, Lcom/wqmobile/sdk/model/HardwareProfile;->getScreen()Lcom/wqmobile/sdk/model/Screen;

    move-result-object v5

    iget-object v0, p0, Lcom/wqmobile/sdk/a/a;->g:Landroid/content/Context;

    check-cast v0, Landroid/app/Activity;

    invoke-virtual {v0}, Landroid/app/Activity;->getWindowManager()Landroid/view/WindowManager;

    move-result-object v0

    invoke-interface {v0}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;

    move-result-object v0

    invoke-virtual {v0}, Landroid/view/Display;->getWidth()I

    move-result v6

    invoke-static {v6}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v6

    invoke-virtual {v5, v6}, Lcom/wqmobile/sdk/model/Screen;->setHorizontalResolution(Ljava/lang/Integer;)V

    invoke-virtual {v0}, Landroid/view/Display;->getHeight()I

    move-result v0

    invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v0

    invoke-virtual {v5, v0}, Lcom/wqmobile/sdk/model/Screen;->setVerticalResolution(Ljava/lang/Integer;)V

    invoke-virtual {v4, v1}, Lcom/wqmobile/sdk/model/DeviceProfile;->setHardwareProfile(Lcom/wqmobile/sdk/model/HardwareProfile;)V

    invoke-direct {p0}, Lcom/wqmobile/sdk/a/a;->k()Lcom/wqmobile/sdk/model/GeographicInfo;

    move-result-object v0

    invoke-virtual {v3, v0}, Lcom/wqmobile/sdk/model/ClientProfile;->setGeographicInfo(Lcom/wqmobile/sdk/model/GeographicInfo;)V

    invoke-direct {p0, v3}, Lcom/wqmobile/sdk/a/a;->a(Lcom/wqmobile/sdk/model/ClientProfile;)V

    invoke-interface {v2, v3}, Lcom/wqmobile/sdk/pojoxml/core/PojoXml;->getXml(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    :cond_2
    iget-object v1, p0, Lcom/wqmobile/sdk/a/a;->s:Ljava/lang/String;

    invoke-virtual {v1}, Ljava/lang/String;->length()I

    move-result v1

    if-lez v1, :cond_8

    iget-object v1, p0, Lcom/wqmobile/sdk/a/a;->t:Ljava/lang/Boolean;

    invoke-virtual {v1}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v1

    if-eqz v1, :cond_8

    iget-object v1, p0, Lcom/wqmobile/sdk/a/a;->f:Ljava/lang/Integer;

    invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I

    move-result v1

    if-nez v1, :cond_c

    const-string v1, "begin getFirstAds"

    invoke-static {v1}, Lcom/wqmobile/sdk/a/a;->b(Ljava/lang/String;)V

    iget-object v1, p0, Lcom/wqmobile/sdk/a/a;->o:Lcom/wqmobile/sdk/protocol/c;

    const/4 v2, 0x1

    invoke-virtual {v1, v0, v2}, Lcom/wqmobile/sdk/protocol/c;->a(Ljava/lang/String;I)V

    const-string v0, "end getFirstAds"

    invoke-static {v0}, Lcom/wqmobile/sdk/a/a;->b(Ljava/lang/String;)V

    iget-object v0, p0, Lcom/wqmobile/sdk/a/a;->a:Lcom/wqmobile/sdk/pojoxml/core/PojoXml;

    invoke-direct {p0}, Lcom/wqmobile/sdk/a/a;->j()Lcom/wqmobile/sdk/model/DynamicClientProfile;

    move-result-object v1

    invoke-interface {v0, v1}, Lcom/wqmobile/sdk/pojoxml/core/PojoXml;->getXml(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    iget-object v1, p0, Lcom/wqmobile/sdk/a/a;->o:Lcom/wqmobile/sdk/protocol/c;

    sget-object v2, Lcom/wqmobile/sdk/a/a;->c:Lcom/wqmobile/sdk/model/AppSettings;

    invoke-virtual {v2}, Lcom/wqmobile/sdk/model/AppSettings;->getIntNextADCount()Ljava/lang/Integer;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/Integer;->intValue()I

    move-result v2

    invoke-virtual {v1, v0, v2}, Lcom/wqmobile/sdk/protocol/c;->b(Ljava/lang/String;I)V

    sget-object v0, Lcom/wqmobile/sdk/a/a;->c:Lcom/wqmobile/sdk/model/AppSettings;

    invoke-virtual {v0}, Lcom/wqmobile/sdk/model/AppSettings;->acceptsOfflineAd()Z

    move-result v0

    if-eqz v0, :cond_4

    sget-object v0, Lcom/wqmobile/sdk/a/a;->c:Lcom/wqmobile/sdk/model/AppSettings;

    invoke-virtual {v0}, Lcom/wqmobile/sdk/model/AppSettings;->getIntOfflineADCount()I

    move-result v0

    sget-object v1, Lcom/wqmobile/sdk/a/a;->i:Lcom/wqmobile/sdk/model/CacheOfflineADs;

    if-eqz v1, :cond_3

    sget-object v1, Lcom/wqmobile/sdk/a/a;->i:Lcom/wqmobile/sdk/model/CacheOfflineADs;

    invoke-virtual {v1}, Lcom/wqmobile/sdk/model/CacheOfflineADs;->getOfflineADs()Ljava/util/List;

    move-result-object v1

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    if-gt v1, v0, :cond_4

    :cond_3
    const-string v1, "get offline ads"

    invoke-static {v1}, Lcom/wqmobile/sdk/a/f;->a(Ljava/lang/String;)V

    iget-object v1, p0, Lcom/wqmobile/sdk/a/a;->o:Lcom/wqmobile/sdk/protocol/c;

    invoke-virtual {v1, v0}, Lcom/wqmobile/sdk/protocol/c;->a(I)V

    :cond_4
    iget-object v0, p0, Lcom/wqmobile/sdk/a/a;->f:Ljava/lang/Integer;

    invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I

    move-result v0

    add-int/lit8 v0, v0, 0x1

    invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v0

    iput-object v0, p0, Lcom/wqmobile/sdk/a/a;->f:Ljava/lang/Integer;

    :cond_5
    :goto_1
    sget-object v0, Lcom/wqmobile/sdk/a/a;->j:Lcom/wqmobile/sdk/model/OfflineADs;

    if-eqz v0, :cond_6

    sget-object v0, Lcom/wqmobile/sdk/a/a;->j:Lcom/wqmobile/sdk/model/OfflineADs;

    invoke-virtual {v0}, Lcom/wqmobile/sdk/model/OfflineADs;->getAD()[Lcom/wqmobile/sdk/model/AD;

    move-result-object v0

    if-nez v0, :cond_7

    :cond_6
    new-instance v0, Lcom/wqmobile/sdk/model/OfflineADs;

    invoke-direct {v0}, Lcom/wqmobile/sdk/model/OfflineADs;-><init>()V

    sput-object v0, Lcom/wqmobile/sdk/a/a;->j:Lcom/wqmobile/sdk/model/OfflineADs;

    :cond_7
    sget-object v0, Lcom/wqmobile/sdk/a/a;->j:Lcom/wqmobile/sdk/model/OfflineADs;

    invoke-virtual {v0}, Lcom/wqmobile/sdk/model/OfflineADs;->getAD()[Lcom/wqmobile/sdk/model/AD;

    move-result-object v0

    array-length v0, v0

    if-lez v0, :cond_8

    sget-object v0, Lcom/wqmobile/sdk/a/a;->k:Ljava/lang/Boolean;

    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    if-nez v0, :cond_8

    iget-object v0, p0, Lcom/wqmobile/sdk/a/a;->a:Lcom/wqmobile/sdk/pojoxml/core/PojoXml;

    sget-object v1, Lcom/wqmobile/sdk/a/a;->j:Lcom/wqmobile/sdk/model/OfflineADs;

    invoke-interface {v0, v1}, Lcom/wqmobile/sdk/pojoxml/core/PojoXml;->getXml(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    iget-object v1, p0, Lcom/wqmobile/sdk/a/a;->o:Lcom/wqmobile/sdk/protocol/c;

    invoke-virtual {v1, v0}, Lcom/wqmobile/sdk/protocol/c;->c(Ljava/lang/String;)V

    new-instance v0, Lcom/wqmobile/sdk/model/OfflineADs;

    invoke-direct {v0}, Lcom/wqmobile/sdk/model/OfflineADs;-><init>()V

    sput-object v0, Lcom/wqmobile/sdk/a/a;->j:Lcom/wqmobile/sdk/model/OfflineADs;

    const/4 v0, 0x1

    invoke-static {v0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    sput-object v0, Lcom/wqmobile/sdk/a/a;->k:Ljava/lang/Boolean;

    :cond_8
    const-string v0, "get ads after"

    invoke-static {v0}, Lcom/wqmobile/sdk/a/a;->b(Ljava/lang/String;)V

    :goto_2
    return-void

    :cond_9
    invoke-virtual {v0}, Landroid/telephony/TelephonyManager;->getNetworkType()I

    move-result v0

    invoke-static {v0}, Lcom/wq/utility/MyApiAdapter;->getNetworkType(I)Lcom/wq/utility/MyApiAdapter$MY_NETWORK_TYPE;

    move-result-object v0

    sget-object v1, Lcom/wq/utility/MyApiAdapter$MY_NETWORK_TYPE;->enum_NETWORK_TYPE_3G:Lcom/wq/utility/MyApiAdapter$MY_NETWORK_TYPE;

    if-ne v0, v1, :cond_a

    const-string v0, "3G"

    const-string v1, ""

    const-string v8, ""

    const-string v9, ""

    invoke-static {v0, v6, v1, v8, v9}, Lcom/wqmobile/sdk/a/a;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lcom/wqmobile/sdk/model/NetworkDevice;

    move-result-object v0

    invoke-interface {v7, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto/16 :goto_0

    :catch_0
    move-exception v0

    invoke-static {v0}, Lcom/wqmobile/sdk/protocol/cmd/b;->a(Ljava/lang/Exception;)V

    goto :goto_2

    :cond_a
    :try_start_1
    sget-object v1, Lcom/wq/utility/MyApiAdapter$MY_NETWORK_TYPE;->enum_NETWORK_TYPE_EDGE:Lcom/wq/utility/MyApiAdapter$MY_NETWORK_TYPE;

    if-ne v0, v1, :cond_b

    const-string v0, "gprs_edge"

    const-string v1, ""

    const-string v8, ""

    const-string v9, ""

    invoke-static {v0, v6, v1, v8, v9}, Lcom/wqmobile/sdk/a/a;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lcom/wqmobile/sdk/model/NetworkDevice;

    move-result-object v0

    invoke-interface {v7, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto/16 :goto_0

    :cond_b
    sget-object v1, Lcom/wq/utility/MyApiAdapter$MY_NETWORK_TYPE;->enum_NETWORK_TYPE_GPRS:Lcom/wq/utility/MyApiAdapter$MY_NETWORK_TYPE;

    if-ne v0, v1, :cond_1

    const-string v0, "gprs"

    const-string v1, ""

    const-string v8, ""

    const-string v9, ""

    invoke-static {v0, v6, v1, v8, v9}, Lcom/wqmobile/sdk/a/a;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lcom/wqmobile/sdk/model/NetworkDevice;

    move-result-object v0

    invoke-interface {v7, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto/16 :goto_0

    :cond_c
    iget-object v0, p0, Lcom/wqmobile/sdk/a/a;->a:Lcom/wqmobile/sdk/pojoxml/core/PojoXml;

    invoke-direct {p0}, Lcom/wqmobile/sdk/a/a;->j()Lcom/wqmobile/sdk/model/DynamicClientProfile;

    move-result-object v1

    invoke-interface {v0, v1}, Lcom/wqmobile/sdk/pojoxml/core/PojoXml;->getXml(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    invoke-direct {p0}, Lcom/wqmobile/sdk/a/a;->l()Ljava/lang/Boolean;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v1

    if-eqz v1, :cond_5

    iget-object v1, p0, Lcom/wqmobile/sdk/a/a;->o:Lcom/wqmobile/sdk/protocol/c;

    invoke-virtual {v1}, Lcom/wqmobile/sdk/protocol/c;->a()Ljava/lang/Boolean;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v1

    if-nez v1, :cond_e

    iget v1, p0, Lcom/wqmobile/sdk/a/a;->B:I

    if-lez v1, :cond_e

    sget-object v1, Lcom/wqmobile/sdk/a/f;->a:Ljava/lang/Boolean;

    invoke-virtual {v1}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v1

    if-eqz v1, :cond_d

    const-string v1, "TestBacktoFore"

    new-instance v2, Ljava/lang/StringBuilder;

    const-string v3, "going to get ad , count:"

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget v3, p0, Lcom/wqmobile/sdk/a/a;->B:I

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v1, v2}, Lcom/wqmobile/sdk/a/f;->a(Ljava/lang/String;Ljava/lang/String;)V

    :cond_d
    iget v1, p0, Lcom/wqmobile/sdk/a/a;->B:I

    sub-int/2addr v1, v11

    iput v1, p0, Lcom/wqmobile/sdk/a/a;->B:I

    move v1, v11

    :goto_3
    iget-object v2, p0, Lcom/wqmobile/sdk/a/a;->o:Lcom/wqmobile/sdk/protocol/c;

    invoke-virtual {v2, v0, v1}, Lcom/wqmobile/sdk/protocol/c;->b(Ljava/lang/String;I)V

    new-instance v0, Ljava/lang/StringBuilder;

    const-string v2, "get next ADs:"

    invoke-direct {v0, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/wqmobile/sdk/a/f;->a(Ljava/lang/String;)V

    goto/16 :goto_1

    :cond_e
    sget-object v1, Lcom/wqmobile/sdk/a/a;->c:Lcom/wqmobile/sdk/model/AppSettings;

    invoke-virtual {v1}, Lcom/wqmobile/sdk/model/AppSettings;->getNextADCount()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    move-result v1

    goto :goto_3
.end method

.method static synthetic a(Lcom/wqmobile/sdk/a/a;Landroid/os/Handler;)V
    .locals 0

    iput-object p1, p0, Lcom/wqmobile/sdk/a/a;->x:Landroid/os/Handler;

    return-void
.end method

.method static synthetic a(Lcom/wqmobile/sdk/a/a;Ljava/lang/Boolean;)V
    .locals 0

    iput-object p1, p0, Lcom/wqmobile/sdk/a/a;->p:Ljava/lang/Boolean;

    return-void
.end method

.method public static a(Lcom/wqmobile/sdk/model/AdvertisementProperties;)V
    .locals 9

    const/4 v7, 0x1

    const/4 v3, 0x0

    invoke-static {v3}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    sget-object v1, Lcom/wqmobile/sdk/a/a;->j:Lcom/wqmobile/sdk/model/OfflineADs;

    if-eqz v1, :cond_0

    sget-object v1, Lcom/wqmobile/sdk/a/a;->j:Lcom/wqmobile/sdk/model/OfflineADs;

    invoke-virtual {v1}, Lcom/wqmobile/sdk/model/OfflineADs;->getAD()[Lcom/wqmobile/sdk/model/AD;

    move-result-object v1

    if-nez v1, :cond_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    sget-object v1, Lcom/wqmobile/sdk/a/a;->j:Lcom/wqmobile/sdk/model/OfflineADs;

    invoke-virtual {v1}, Lcom/wqmobile/sdk/model/OfflineADs;->getAD()[Lcom/wqmobile/sdk/model/AD;

    move-result-object v1

    array-length v2, v1

    move v8, v3

    move-object v3, v0

    move v0, v8

    :goto_1
    if-lt v0, v2, :cond_2

    invoke-virtual {v3}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    if-nez v0, :cond_0

    new-instance v0, Lcom/wqmobile/sdk/model/AD;

    invoke-direct {v0}, Lcom/wqmobile/sdk/model/AD;-><init>()V

    invoke-virtual {p0}, Lcom/wqmobile/sdk/model/AdvertisementProperties;->getAdID()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/wqmobile/sdk/model/AD;->setID(Ljava/lang/String;)V

    invoke-virtual {p0}, Lcom/wqmobile/sdk/model/AdvertisementProperties;->getRunningCount()Ljava/lang/Integer;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/wqmobile/sdk/model/AD;->setViewCount(Ljava/lang/Integer;)V

    invoke-static {v7}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/wqmobile/sdk/model/AD;->setClickCount(Ljava/lang/Integer;)V

    sget-object v1, Lcom/wqmobile/sdk/a/a;->j:Lcom/wqmobile/sdk/model/OfflineADs;

    invoke-virtual {v1}, Lcom/wqmobile/sdk/model/OfflineADs;->getAD()[Lcom/wqmobile/sdk/model/AD;

    move-result-object v1

    array-length v2, v1

    if-lez v2, :cond_4

    new-instance v2, Ljava/util/ArrayList;

    invoke-static {v1}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;

    move-result-object v1

    invoke-direct {v2, v1}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V

    move-object v1, v2

    :goto_2
    invoke-interface {v1, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v0

    new-array v0, v0, [Lcom/wqmobile/sdk/model/AD;

    invoke-interface {v1, v0}, Ljava/util/List;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;

    sget-object v1, Lcom/wqmobile/sdk/a/a;->j:Lcom/wqmobile/sdk/model/OfflineADs;

    invoke-virtual {v1, v0}, Lcom/wqmobile/sdk/model/OfflineADs;->setAD([Lcom/wqmobile/sdk/model/AD;)V

    goto :goto_0

    :cond_2
    aget-object v4, v1, v0

    invoke-virtual {v4}, Lcom/wqmobile/sdk/model/AD;->getID()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {p0}, Lcom/wqmobile/sdk/model/AdvertisementProperties;->getAdID()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-eqz v5, :cond_3

    invoke-virtual {v4}, Lcom/wqmobile/sdk/model/AD;->getClickCount()Ljava/lang/Integer;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/Integer;->intValue()I

    move-result v3

    add-int/lit8 v3, v3, 0x1

    invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    invoke-virtual {v4, v3}, Lcom/wqmobile/sdk/model/AD;->setViewCount(Ljava/lang/Integer;)V

    invoke-static {v7}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v3

    :cond_3
    add-int/lit8 v0, v0, 0x1

    goto :goto_1

    :cond_4
    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    goto :goto_2
.end method

.method static synthetic a(Lcom/wqmobile/sdk/model/CacheOfflineADs;)V
    .locals 0

    sput-object p0, Lcom/wqmobile/sdk/a/a;->i:Lcom/wqmobile/sdk/model/CacheOfflineADs;

    return-void
.end method

.method private a(Lcom/wqmobile/sdk/model/ClientProfile;)V
    .locals 3

    :try_start_0
    iget-object v0, p0, Lcom/wqmobile/sdk/a/a;->g:Landroid/content/Context;

    invoke-virtual {v0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v0

    iget-object v1, p0, Lcom/wqmobile/sdk/a/a;->g:Landroid/content/Context;

    invoke-virtual {v1}, Landroid/content/Context;->getPackageName()Ljava/lang/String;

    move-result-object v1

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/content/pm/PackageManager;->getPackageInfo(Ljava/lang/String;I)Landroid/content/pm/PackageInfo;

    move-result-object v1

    iget-object v0, v1, Landroid/content/pm/PackageInfo;->applicationInfo:Landroid/content/pm/ApplicationInfo;

    iget-object v2, p0, Lcom/wqmobile/sdk/a/a;->g:Landroid/content/Context;

    invoke-virtual {v2}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v2

    invoke-virtual {v0, v2}, Landroid/content/pm/ApplicationInfo;->loadLabel(Landroid/content/pm/PackageManager;)Ljava/lang/CharSequence;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    invoke-virtual {p1, v0}, Lcom/wqmobile/sdk/model/ClientProfile;->setAppName(Ljava/lang/String;)V

    iget-object v0, v1, Landroid/content/pm/PackageInfo;->versionName:Ljava/lang/String;

    invoke-virtual {p1, v0}, Lcom/wqmobile/sdk/model/ClientProfile;->setAppVersion(Ljava/lang/String;)V

    iget-object v0, v1, Landroid/content/pm/PackageInfo;->packageName:Ljava/lang/String;

    invoke-virtual {p1, v0}, Lcom/wqmobile/sdk/model/ClientProfile;->setPackageName(Ljava/lang/String;)V

    iget-object v0, v1, Landroid/content/pm/PackageInfo;->packageName:Ljava/lang/String;

    iput-object v0, p0, Lcom/wqmobile/sdk/a/a;->A:Ljava/lang/String;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :goto_0
    return-void

    :catch_0
    move-exception v0

    invoke-static {v0}, Lcom/wqmobile/sdk/protocol/cmd/b;->a(Ljava/lang/Exception;)V

    goto :goto_0
.end method

.method public static a(Ljava/lang/String;Ljava/lang/String;)V
    .locals 0

    invoke-static {p0, p1}, Lcom/wqmobile/sdk/a/f;->a(Ljava/lang/String;Ljava/lang/String;)V

    return-void
.end method

.method public static b(Landroid/content/Context;)I
    .locals 1

    :try_start_0
    const-string v0, "phone"

    invoke-virtual {p0, v0}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Landroid/telephony/TelephonyManager;

    invoke-virtual {p0}, Landroid/telephony/TelephonyManager;->getNetworkType()I
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move-result v0

    :goto_0
    return v0

    :catch_0
    move-exception v0

    const/4 v0, -0x1

    goto :goto_0
.end method

.method public static b()Lcom/wqmobile/sdk/model/AppSettings;
    .locals 1

    sget-object v0, Lcom/wqmobile/sdk/a/a;->c:Lcom/wqmobile/sdk/model/AppSettings;

    return-object v0
.end method

.method static synthetic b(Lcom/wqmobile/sdk/a/a;)Lcom/wqmobile/sdk/pojoxml/core/PojoXmlFactory;
    .locals 1

    iget-object v0, p0, Lcom/wqmobile/sdk/a/a;->e:Lcom/wqmobile/sdk/pojoxml/core/PojoXmlFactory;

    return-object v0
.end method

.method static b(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;
    .locals 4

    new-instance v0, Ljava/lang/StringBuilder;

    const-string v1, "res/"

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, "/"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {p0, v0}, Lcom/wqmobile/sdk/b/a;->a(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    new-instance v1, Ljava/io/File;

    invoke-direct {v1, v0}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {v1}, Ljava/io/File;->exists()Z

    move-result v2

    if-eqz v2, :cond_0

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v2

    invoke-virtual {v1, v2, v3}, Ljava/io/File;->setLastModified(J)Z

    :cond_0
    return-object v0
.end method

.method public static b(Lcom/wqmobile/sdk/model/AdvertisementProperties;)V
    .locals 9

    const/4 v7, 0x1

    const/4 v3, 0x0

    if-eqz p0, :cond_0

    sget-object v0, Lcom/wqmobile/sdk/a/a;->j:Lcom/wqmobile/sdk/model/OfflineADs;

    if-eqz v0, :cond_0

    sget-object v0, Lcom/wqmobile/sdk/a/a;->j:Lcom/wqmobile/sdk/model/OfflineADs;

    invoke-virtual {v0}, Lcom/wqmobile/sdk/model/OfflineADs;->getAD()[Lcom/wqmobile/sdk/model/AD;

    move-result-object v0

    if-nez v0, :cond_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    invoke-static {v3}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    sget-object v1, Lcom/wqmobile/sdk/a/a;->j:Lcom/wqmobile/sdk/model/OfflineADs;

    invoke-virtual {v1}, Lcom/wqmobile/sdk/model/OfflineADs;->getAD()[Lcom/wqmobile/sdk/model/AD;

    move-result-object v1

    array-length v2, v1

    move v8, v3

    move-object v3, v0

    move v0, v8

    :goto_1
    if-lt v0, v2, :cond_2

    invoke-virtual {v3}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    if-nez v0, :cond_0

    new-instance v0, Lcom/wqmobile/sdk/model/AD;

    invoke-direct {v0}, Lcom/wqmobile/sdk/model/AD;-><init>()V

    invoke-virtual {p0}, Lcom/wqmobile/sdk/model/AdvertisementProperties;->getAdID()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/wqmobile/sdk/model/AD;->setID(Ljava/lang/String;)V

    invoke-virtual {p0}, Lcom/wqmobile/sdk/model/AdvertisementProperties;->getRunningCount()Ljava/lang/Integer;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/wqmobile/sdk/model/AD;->setViewCount(Ljava/lang/Integer;)V

    invoke-static {v7}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/wqmobile/sdk/model/AD;->setClickCount(Ljava/lang/Integer;)V

    sget-object v1, Lcom/wqmobile/sdk/a/a;->j:Lcom/wqmobile/sdk/model/OfflineADs;

    invoke-virtual {v1}, Lcom/wqmobile/sdk/model/OfflineADs;->getAD()[Lcom/wqmobile/sdk/model/AD;

    move-result-object v1

    array-length v2, v1

    if-lez v2, :cond_4

    new-instance v2, Ljava/util/ArrayList;

    invoke-static {v1}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;

    move-result-object v1

    invoke-direct {v2, v1}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V

    move-object v1, v2

    :goto_2
    invoke-interface {v1, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v0

    new-array v0, v0, [Lcom/wqmobile/sdk/model/AD;

    invoke-interface {v1, v0}, Ljava/util/List;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;

    sget-object v1, Lcom/wqmobile/sdk/a/a;->j:Lcom/wqmobile/sdk/model/OfflineADs;

    invoke-virtual {v1, v0}, Lcom/wqmobile/sdk/model/OfflineADs;->setAD([Lcom/wqmobile/sdk/model/AD;)V

    goto :goto_0

    :cond_2
    aget-object v4, v1, v0

    invoke-virtual {v4}, Lcom/wqmobile/sdk/model/AD;->getID()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {p0}, Lcom/wqmobile/sdk/model/AdvertisementProperties;->getAdID()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-eqz v5, :cond_3

    invoke-virtual {v4}, Lcom/wqmobile/sdk/model/AD;->getClickCount()Ljava/lang/Integer;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/Integer;->intValue()I

    move-result v3

    add-int/lit8 v3, v3, 0x1

    invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    invoke-virtual {v4, v3}, Lcom/wqmobile/sdk/model/AD;->setClickCount(Ljava/lang/Integer;)V

    invoke-static {v7}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v3

    :cond_3
    add-int/lit8 v0, v0, 0x1

    goto :goto_1

    :cond_4
    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    goto :goto_2
.end method

.method private b(Lcom/wqmobile/sdk/model/AppSettings;)V
    .locals 2

    const/4 v1, 0x6

    sput-object p1, Lcom/wqmobile/sdk/a/a;->c:Lcom/wqmobile/sdk/model/AppSettings;

    if-eqz p1, :cond_0

    sget-object v0, Lcom/wqmobile/sdk/a/a;->c:Lcom/wqmobile/sdk/model/AppSettings;

    invoke-virtual {v0}, Lcom/wqmobile/sdk/model/AppSettings;->getMaxOfflineAdShowCount()Ljava/lang/String;

    move-result-object v0

    if-nez v0, :cond_2

    :cond_0
    sget-object v0, Lcom/wqmobile/sdk/a/a;->m:Ljava/lang/Integer;

    if-nez v0, :cond_1

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v0

    sput-object v0, Lcom/wqmobile/sdk/a/a;->m:Ljava/lang/Integer;

    :cond_1
    :goto_0
    return-void

    :cond_2
    :try_start_0
    sget-object v0, Lcom/wqmobile/sdk/a/a;->c:Lcom/wqmobile/sdk/model/AppSettings;

    invoke-virtual {v0}, Lcom/wqmobile/sdk/model/AppSettings;->getMaxOfflineAdShowCount()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object v0

    sput-object v0, Lcom/wqmobile/sdk/a/a;->m:Ljava/lang/Integer;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v0

    sput-object v0, Lcom/wqmobile/sdk/a/a;->m:Ljava/lang/Integer;

    goto :goto_0
.end method

.method public static b(Ljava/lang/String;)V
    .locals 5

    sget-object v0, Lcom/wqmobile/sdk/a/f;->a:Ljava/lang/Boolean;

    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    if-eqz v0, :cond_0

    new-instance v0, Ljava/text/SimpleDateFormat;

    const-string v1, "hh:mm:ss SSS"

    invoke-direct {v0, v1}, Ljava/text/SimpleDateFormat;-><init>(Ljava/lang/String;)V

    new-instance v1, Ljava/sql/Date;

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v2

    invoke-direct {v1, v2, v3}, Ljava/sql/Date;-><init>(J)V

    const-string v2, "wqadsdk view tag"

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-static {p0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v4

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0, v1}, Ljava/text/SimpleDateFormat;->format(Ljava/util/Date;)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v2, v0}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    :cond_0
    return-void
.end method

.method public static c()I
    .locals 3

    const/4 v2, 0x3

    sget-object v0, Lcom/wqmobile/sdk/a/a;->c:Lcom/wqmobile/sdk/model/AppSettings;

    if-eqz v0, :cond_1

    sget-object v0, Lcom/wqmobile/sdk/a/a;->c:Lcom/wqmobile/sdk/model/AppSettings;

    invoke-virtual {v0}, Lcom/wqmobile/sdk/model/AppSettings;->getNextADCount()Ljava/lang/String;

    move-result-object v0

    if-eqz v0, :cond_1

    :try_start_0
    sget-object v0, Lcom/wqmobile/sdk/a/a;->c:Lcom/wqmobile/sdk/model/AppSettings;

    invoke-virtual {v0}, Lcom/wqmobile/sdk/model/AppSettings;->getNextADCount()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move-result v0

    const/16 v1, 0xa

    if-le v0, v1, :cond_0

    move v0, v2

    :cond_0
    :goto_0
    return v0

    :catch_0
    move-exception v0

    :cond_1
    move v0, v2

    goto :goto_0
.end method

.method private c(Landroid/content/Context;)Ljava/lang/Boolean;
    .locals 3

    const/4 v2, 0x0

    invoke-static {v2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    :try_start_0
    const-string v1, "connectivity"

    invoke-virtual {p1, v1}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Landroid/net/ConnectivityManager;

    if-eqz p0, :cond_0

    invoke-virtual {p0}, Landroid/net/ConnectivityManager;->getActiveNetworkInfo()Landroid/net/NetworkInfo;

    move-result-object v1

    if-eqz v1, :cond_0

    invoke-virtual {v1}, Landroid/net/NetworkInfo;->isAvailable()Z

    move-result v0

    invoke-static {v0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move-result-object v0

    :cond_0
    :goto_0
    return-object v0

    :catch_0
    move-exception v0

    invoke-static {v2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v1

    invoke-virtual {v0}, Ljava/lang/Exception;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/wqmobile/sdk/a/f;->a(Ljava/lang/String;)V

    move-object v0, v1

    goto :goto_0
.end method

.method public static c(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;
    .locals 2

    new-instance v0, Ljava/lang/StringBuilder;

    const-string v1, "res/"

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, "/index.html"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {p0, v0}, Lcom/wqmobile/sdk/b/a;->a(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method static synthetic c(Lcom/wqmobile/sdk/a/a;)V
    .locals 5

    new-instance v1, Ljava/sql/Timestamp;

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v2

    invoke-direct {v1, v2, v3}, Ljava/sql/Timestamp;-><init>(J)V

    sget-object v0, Lcom/wqmobile/sdk/a/a;->i:Lcom/wqmobile/sdk/model/CacheOfflineADs;

    invoke-virtual {v0}, Lcom/wqmobile/sdk/model/CacheOfflineADs;->getOfflineADs()Ljava/util/List;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :cond_0
    :goto_0
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-nez v0, :cond_1

    return-void

    :cond_1
    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/wqmobile/sdk/model/AdvertisementProperties;

    invoke-virtual {v0}, Lcom/wqmobile/sdk/model/AdvertisementProperties;->getOfflineAdExpireDate()Ljava/lang/String;

    move-result-object v3

    if-eqz v3, :cond_0

    invoke-virtual {v0}, Lcom/wqmobile/sdk/model/AdvertisementProperties;->getOfflineAdExpireDateTime()Ljava/util/Date;

    move-result-object v3

    invoke-virtual {v3, v1}, Ljava/util/Date;->before(Ljava/util/Date;)Z

    move-result v3

    if-eqz v3, :cond_0

    new-instance v3, Ljava/lang/StringBuilder;

    const-string v4, "time out adID : "

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Lcom/wqmobile/sdk/model/AdvertisementProperties;->getAdID()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v3}, Lcom/wqmobile/sdk/a/f;->a(Ljava/lang/String;)V

    invoke-virtual {v0}, Lcom/wqmobile/sdk/model/AdvertisementProperties;->getAdID()Ljava/lang/String;

    move-result-object v0

    iget-object v3, p0, Lcom/wqmobile/sdk/a/a;->g:Landroid/content/Context;

    invoke-static {v0, v3}, Lcom/wqmobile/sdk/b/a;->a(Ljava/lang/String;Landroid/content/Context;)V

    invoke-interface {v2}, Ljava/util/Iterator;->remove()V

    goto :goto_0
.end method

.method public static c(Ljava/lang/String;)V
    .locals 0

    invoke-static {p0}, Lcom/wqmobile/sdk/a/f;->a(Ljava/lang/String;)V

    return-void
.end method

.method public static d()I
    .locals 4

    const/16 v3, 0x14

    sget-object v0, Lcom/wqmobile/sdk/a/a;->c:Lcom/wqmobile/sdk/model/AppSettings;

    if-eqz v0, :cond_1

    sget-object v0, Lcom/wqmobile/sdk/a/a;->c:Lcom/wqmobile/sdk/model/AppSettings;

    invoke-virtual {v0}, Lcom/wqmobile/sdk/model/AppSettings;->getRefreshRate()Ljava/lang/Integer;

    move-result-object v0

    if-eqz v0, :cond_1

    :try_start_0
    sget-object v0, Lcom/wqmobile/sdk/a/a;->c:Lcom/wqmobile/sdk/model/AppSettings;

    invoke-virtual {v0}, Lcom/wqmobile/sdk/model/AppSettings;->getRefreshRate()Ljava/lang/Integer;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I

    move-result v0

    invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I

    move-result v0

    sget-object v1, Lcom/wqmobile/sdk/a/a;->c:Lcom/wqmobile/sdk/model/AppSettings;

    invoke-virtual {v1}, Lcom/wqmobile/sdk/model/AppSettings;->getTestMode()Ljava/lang/String;

    move-result-object v1

    const-string v2, "N"
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    if-ne v1, v2, :cond_0

    if-ge v0, v3, :cond_0

    move v0, v3

    :cond_0
    :goto_0
    return v0

    :catch_0
    move-exception v0

    :cond_1
    move v0, v3

    goto :goto_0
.end method

.method private d(Landroid/content/Context;)Lcom/wqmobile/sdk/model/PhoneInfo;
    .locals 10

    const/4 v9, 0x3

    new-instance v6, Lcom/wqmobile/sdk/model/PhoneInfo;

    invoke-direct {v6}, Lcom/wqmobile/sdk/model/PhoneInfo;-><init>()V

    invoke-virtual {v6}, Lcom/wqmobile/sdk/model/PhoneInfo;->getDeviceID()Lcom/wqmobile/sdk/model/DeviceID;

    move-result-object v0

    invoke-virtual {v6}, Lcom/wqmobile/sdk/model/PhoneInfo;->getBaseStation()Lcom/wqmobile/sdk/model/BaseStation;

    move-result-object v1

    invoke-virtual {v6}, Lcom/wqmobile/sdk/model/PhoneInfo;->getNetwork()Lcom/wqmobile/sdk/model/Network;

    move-result-object v2

    invoke-virtual {v2}, Lcom/wqmobile/sdk/model/Network;->getOperator()Lcom/wqmobile/sdk/model/Operator;

    move-result-object v7

    const/4 v3, 0x0

    const-string v4, "phone"

    invoke-virtual {p1, v4}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Landroid/telephony/TelephonyManager;

    invoke-virtual {v5}, Landroid/telephony/TelephonyManager;->getPhoneType()I

    move-result v4

    invoke-static {v4}, Lcom/wq/utility/MyApiAdapter;->getPhoneType(I)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v5}, Landroid/telephony/TelephonyManager;->getLine1Number()Ljava/lang/String;

    move-result-object v8

    invoke-virtual {v6, v8}, Lcom/wqmobile/sdk/model/PhoneInfo;->setPhoneNumber(Ljava/lang/String;)V

    invoke-virtual {v6, v4}, Lcom/wqmobile/sdk/model/PhoneInfo;->setRadioType(Ljava/lang/String;)V

    invoke-static {}, Lcom/wq/utility/MyApiAdapter;->GetManufacturer()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v6, v4}, Lcom/wqmobile/sdk/model/PhoneInfo;->setManufacturer(Ljava/lang/String;)V

    sget-object v4, Landroid/os/Build;->MODEL:Ljava/lang/String;

    invoke-virtual {v6, v4}, Lcom/wqmobile/sdk/model/PhoneInfo;->setModel(Ljava/lang/String;)V

    invoke-virtual {v5}, Landroid/telephony/TelephonyManager;->getDeviceId()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v0, v4}, Lcom/wqmobile/sdk/model/DeviceID;->setIMEI(Ljava/lang/String;)V

    invoke-virtual {v5}, Landroid/telephony/TelephonyManager;->getSubscriberId()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v0, v4}, Lcom/wqmobile/sdk/model/DeviceID;->setIMSI(Ljava/lang/String;)V

    :try_start_0
    invoke-virtual {v5}, Landroid/telephony/TelephonyManager;->getCellLocation()Landroid/telephony/CellLocation;

    move-result-object p0

    check-cast p0, Landroid/telephony/gsm/GsmCellLocation;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move-object v0, p0

    :goto_0
    if-eqz v0, :cond_0

    invoke-virtual {v0}, Landroid/telephony/gsm/GsmCellLocation;->getCid()I

    move-result v3

    invoke-static {v3}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v1, v3}, Lcom/wqmobile/sdk/model/BaseStation;->setGSMCellID(Ljava/lang/String;)V

    invoke-virtual {v0}, Landroid/telephony/gsm/GsmCellLocation;->getLac()I

    move-result v0

    invoke-static {v0}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v1, v0}, Lcom/wqmobile/sdk/model/BaseStation;->setGSMLocationAreaCode(Ljava/lang/String;)V

    :cond_0
    invoke-virtual {v5}, Landroid/telephony/TelephonyManager;->getNetworkCountryIso()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v2, v0}, Lcom/wqmobile/sdk/model/Network;->setCountryISO(Ljava/lang/String;)V

    invoke-virtual {v5}, Landroid/telephony/TelephonyManager;->getNetworkOperator()Ljava/lang/String;

    move-result-object v0

    if-eqz v0, :cond_1

    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v1

    const/4 v2, 0x2

    if-le v1, v2, :cond_1

    const/4 v1, 0x0

    invoke-virtual {v0, v1, v9}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v7, v1}, Lcom/wqmobile/sdk/model/Operator;->setMCC(Ljava/lang/String;)V

    invoke-virtual {v0, v9}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v7, v0}, Lcom/wqmobile/sdk/model/Operator;->setMNC(Ljava/lang/String;)V

    :cond_1
    :try_start_1
    const-string v0, ""

    const-string v1, ""

    const-string v2, ""

    const-string v3, ""

    const-string v4, ""

    invoke-static/range {v0 .. v5}, Lcom/wq/utility/MyApiAdapter;->GetCdmaCellLocation(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Landroid/telephony/TelephonyManager;)V

    invoke-virtual {v7, v0}, Lcom/wqmobile/sdk/model/Operator;->setSID(Ljava/lang/String;)V

    invoke-virtual {v7, v1}, Lcom/wqmobile/sdk/model/Operator;->setNID(Ljava/lang/String;)V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_1

    :goto_1
    return-object v6

    :catch_0
    move-exception v0

    invoke-virtual {v0}, Ljava/lang/Exception;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/wqmobile/sdk/a/f;->a(Ljava/lang/String;)V

    move-object v0, v3

    goto :goto_0

    :catch_1
    move-exception v0

    invoke-virtual {v0}, Ljava/lang/Exception;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/wqmobile/sdk/a/f;->a(Ljava/lang/String;)V

    goto :goto_1
.end method

.method static synthetic d(Lcom/wqmobile/sdk/a/a;)Ljava/util/List;
    .locals 1

    iget-object v0, p0, Lcom/wqmobile/sdk/a/a;->u:Ljava/util/List;

    return-object v0
.end method

.method static synthetic g()Lcom/wqmobile/sdk/model/CacheOfflineADs;
    .locals 1

    sget-object v0, Lcom/wqmobile/sdk/a/a;->i:Lcom/wqmobile/sdk/model/CacheOfflineADs;

    return-object v0
.end method

.method static synthetic h()Ljava/util/List;
    .locals 1

    sget-object v0, Lcom/wqmobile/sdk/a/a;->v:Ljava/util/List;

    return-object v0
.end method

.method private i()V
    .locals 5

    const/16 v4, 0x14

    const/4 v3, 0x3

    :try_start_0
    iget-object v0, p0, Lcom/wqmobile/sdk/a/a;->g:Landroid/content/Context;

    invoke-direct {p0, v0}, Lcom/wqmobile/sdk/a/a;->c(Landroid/content/Context;)Ljava/lang/Boolean;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    if-eqz v0, :cond_0

    sget-object v0, Lcom/wqmobile/sdk/a/a;->c:Lcom/wqmobile/sdk/model/AppSettings;

    if-eqz v0, :cond_6

    iget-object v0, p0, Lcom/wqmobile/sdk/a/a;->o:Lcom/wqmobile/sdk/protocol/c;

    if-eqz v0, :cond_6

    const/4 v0, 0x0

    :goto_0
    if-le v0, v3, :cond_1

    :cond_0
    :goto_1
    iget-object v0, p0, Lcom/wqmobile/sdk/a/a;->s:Ljava/lang/String;

    invoke-static {v0}, Lcom/wqmobile/sdk/a/f;->a(Ljava/lang/String;)V

    sget-object v0, Lcom/wqmobile/sdk/a/a;->c:Lcom/wqmobile/sdk/model/AppSettings;

    invoke-virtual {v0}, Lcom/wqmobile/sdk/model/AppSettings;->getAppID()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/wqmobile/sdk/a/f;->a(Ljava/lang/String;)V

    :goto_2
    return-void

    :cond_1
    iget-object v1, p0, Lcom/wqmobile/sdk/a/a;->o:Lcom/wqmobile/sdk/protocol/c;

    sget-object v2, Lcom/wqmobile/sdk/a/a;->c:Lcom/wqmobile/sdk/model/AppSettings;

    invoke-virtual {v2}, Lcom/wqmobile/sdk/model/AppSettings;->getPublisherID()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/wqmobile/sdk/protocol/c;->a(Ljava/lang/String;)Z

    move-result v1

    invoke-static {v1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v1

    iput-object v1, p0, Lcom/wqmobile/sdk/a/a;->t:Ljava/lang/Boolean;

    iget-object v1, p0, Lcom/wqmobile/sdk/a/a;->t:Ljava/lang/Boolean;

    invoke-virtual {v1}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v1

    if-eqz v1, :cond_5

    :cond_2
    if-gt v0, v3, :cond_0

    const-string v1, "begin refreshAppSetting"

    invoke-static {v1}, Lcom/wqmobile/sdk/a/a;->b(Ljava/lang/String;)V

    sget-object v1, Lcom/wqmobile/sdk/a/f;->a:Ljava/lang/Boolean;

    invoke-virtual {v1}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v1

    if-eqz v1, :cond_3

    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "!!!:"

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v2, p0, Lcom/wqmobile/sdk/a/a;->d:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Lcom/wqmobile/sdk/a/f;->a(Ljava/lang/String;)V

    :cond_3
    iget-object v1, p0, Lcom/wqmobile/sdk/a/a;->o:Lcom/wqmobile/sdk/protocol/c;

    iget-object v2, p0, Lcom/wqmobile/sdk/a/a;->d:Ljava/lang/String;

    invoke-virtual {v1, v2}, Lcom/wqmobile/sdk/protocol/c;->b(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lcom/wqmobile/sdk/a/a;->s:Ljava/lang/String;

    const-string v1, "end refreshAppSetting"

    invoke-static {v1}, Lcom/wqmobile/sdk/a/a;->b(Ljava/lang/String;)V

    iget-object v1, p0, Lcom/wqmobile/sdk/a/a;->s:Ljava/lang/String;

    invoke-virtual {v1}, Ljava/lang/String;->length()I

    move-result v1

    if-lez v1, :cond_2

    iget-object v0, p0, Lcom/wqmobile/sdk/a/a;->a:Lcom/wqmobile/sdk/pojoxml/core/PojoXml;

    iget-object v1, p0, Lcom/wqmobile/sdk/a/a;->s:Ljava/lang/String;

    const-class v2, Lcom/wqmobile/sdk/model/AppSettings;

    invoke-interface {v0, v1, v2}, Lcom/wqmobile/sdk/pojoxml/core/PojoXml;->getPojo(Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/wqmobile/sdk/model/AppSettings;

    invoke-direct {p0, v0}, Lcom/wqmobile/sdk/a/a;->b(Lcom/wqmobile/sdk/model/AppSettings;)V

    sget-object v0, Lcom/wqmobile/sdk/a/a;->c:Lcom/wqmobile/sdk/model/AppSettings;

    invoke-virtual {v0}, Lcom/wqmobile/sdk/model/AppSettings;->getTestMode()Ljava/lang/String;

    move-result-object v0

    const-string v1, "N"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_4

    sget-object v0, Lcom/wqmobile/sdk/a/a;->c:Lcom/wqmobile/sdk/model/AppSettings;

    invoke-virtual {v0}, Lcom/wqmobile/sdk/model/AppSettings;->getRefreshRate()Ljava/lang/Integer;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I

    move-result v0

    if-ge v0, v4, :cond_4

    sget-object v0, Lcom/wqmobile/sdk/a/a;->c:Lcom/wqmobile/sdk/model/AppSettings;

    const/16 v1, 0x14

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/wqmobile/sdk/model/AppSettings;->setRefreshRate(Ljava/lang/Integer;)V

    :cond_4
    new-instance v0, Ljava/lang/StringBuilder;

    const-string v1, "LoopTimes:"

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    sget-object v1, Lcom/wqmobile/sdk/a/a;->c:Lcom/wqmobile/sdk/model/AppSettings;

    invoke-virtual {v1}, Lcom/wqmobile/sdk/model/AppSettings;->getLoopTimes()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, "NextADCount:"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    sget-object v1, Lcom/wqmobile/sdk/a/a;->c:Lcom/wqmobile/sdk/model/AppSettings;

    invoke-virtual {v1}, Lcom/wqmobile/sdk/model/AppSettings;->getNextADCount()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, "RefreshRate:"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    sget-object v1, Lcom/wqmobile/sdk/a/a;->c:Lcom/wqmobile/sdk/model/AppSettings;

    invoke-virtual {v1}, Lcom/wqmobile/sdk/model/AppSettings;->getRefreshRate()Ljava/lang/Integer;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/wqmobile/sdk/a/f;->a(Ljava/lang/String;)V

    goto/16 :goto_1

    :catch_0
    move-exception v0

    goto/16 :goto_2

    :cond_5
    add-int/lit8 v0, v0, 0x1

    goto/16 :goto_0

    :cond_6
    sget-object v0, Lcom/wqmobile/sdk/a/a;->c:Lcom/wqmobile/sdk/model/AppSettings;

    if-nez v0, :cond_0

    const-string v0, "Error: apsetting is null"

    invoke-static {v0}, Lcom/wqmobile/sdk/a/f;->a(Ljava/lang/String;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto/16 :goto_1
.end method

.method private j()Lcom/wqmobile/sdk/model/DynamicClientProfile;
    .locals 5

    new-instance v0, Lcom/wqmobile/sdk/model/DynamicClientProfile;

    invoke-direct {v0}, Lcom/wqmobile/sdk/model/DynamicClientProfile;-><init>()V

    new-instance v1, Lcom/wqmobile/sdk/model/DynClientProfile;

    invoke-direct {v1}, Lcom/wqmobile/sdk/model/DynClientProfile;-><init>()V

    invoke-direct {p0}, Lcom/wqmobile/sdk/a/a;->k()Lcom/wqmobile/sdk/model/GeographicInfo;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/wqmobile/sdk/model/DynClientProfile;->setGeographicInfo(Lcom/wqmobile/sdk/model/GeographicInfo;)V

    new-instance v2, Lcom/wqmobile/sdk/model/ViewSettings;

    iget v3, p0, Lcom/wqmobile/sdk/a/a;->q:I

    invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    iget v4, p0, Lcom/wqmobile/sdk/a/a;->r:I

    invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v4

    invoke-direct {v2, v3, v4}, Lcom/wqmobile/sdk/model/ViewSettings;-><init>(Ljava/lang/Integer;Ljava/lang/Integer;)V

    invoke-virtual {v0, v2}, Lcom/wqmobile/sdk/model/DynamicClientProfile;->setViewSettings(Lcom/wqmobile/sdk/model/ViewSettings;)V

    invoke-virtual {v0, v1}, Lcom/wqmobile/sdk/model/DynamicClientProfile;->setClientProfile(Lcom/wqmobile/sdk/model/DynClientProfile;)V

    return-object v0
.end method

.method private k()Lcom/wqmobile/sdk/model/GeographicInfo;
    .locals 6

    new-instance v0, Lcom/wqmobile/sdk/model/GeographicInfo;

    invoke-direct {v0}, Lcom/wqmobile/sdk/model/GeographicInfo;-><init>()V

    :try_start_0
    iget-object v1, p0, Lcom/wqmobile/sdk/a/a;->g:Landroid/content/Context;

    const-string v2, "location"

    invoke-virtual {v1, v2}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Landroid/location/LocationManager;

    new-instance v1, Landroid/location/Criteria;

    invoke-direct {v1}, Landroid/location/Criteria;-><init>()V

    const/4 v2, 0x1

    invoke-virtual {v1, v2}, Landroid/location/Criteria;->setAccuracy(I)V

    const/4 v2, 0x0

    invoke-virtual {v1, v2}, Landroid/location/Criteria;->setAltitudeRequired(Z)V

    const/4 v2, 0x0

    invoke-virtual {v1, v2}, Landroid/location/Criteria;->setBearingRequired(Z)V

    const/4 v2, 0x0

    invoke-virtual {v1, v2}, Landroid/location/Criteria;->setCostAllowed(Z)V

    const/4 v2, 0x1

    invoke-virtual {v1, v2}, Landroid/location/Criteria;->setPowerRequirement(I)V

    const/4 v2, 0x1

    invoke-virtual {p0, v1, v2}, Landroid/location/LocationManager;->getBestProvider(Landroid/location/Criteria;Z)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p0, v1}, Landroid/location/LocationManager;->getLastKnownLocation(Ljava/lang/String;)Landroid/location/Location;

    move-result-object v2

    if-eqz v2, :cond_0

    invoke-virtual {v2}, Landroid/location/Location;->getLatitude()D

    move-result-wide v3

    invoke-static {v3, v4}, Ljava/lang/Double;->toString(D)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2}, Landroid/location/Location;->getLongitude()D

    move-result-wide v4

    invoke-static {v4, v5}, Ljava/lang/Double;->toString(D)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v3}, Lcom/wqmobile/sdk/model/GeographicInfo;->setLatitude(Ljava/lang/String;)V

    invoke-virtual {v0, v2}, Lcom/wqmobile/sdk/model/GeographicInfo;->setLongitude(Ljava/lang/String;)V

    invoke-virtual {v0, v1}, Lcom/wqmobile/sdk/model/GeographicInfo;->setObtainMethod(Ljava/lang/String;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :cond_0
    :goto_0
    return-object v0

    :catch_0
    move-exception v1

    const-string v1, "0"

    invoke-virtual {v0, v1}, Lcom/wqmobile/sdk/model/GeographicInfo;->setLatitude(Ljava/lang/String;)V

    const-string v1, "0"

    invoke-virtual {v0, v1}, Lcom/wqmobile/sdk/model/GeographicInfo;->setLongitude(Ljava/lang/String;)V

    const-string v1, ""

    invoke-virtual {v0, v1}, Lcom/wqmobile/sdk/model/GeographicInfo;->setObtainMethod(Ljava/lang/String;)V

    const-string v1, "Err in getting location"

    invoke-static {v1}, Lcom/wqmobile/sdk/a/f;->a(Ljava/lang/String;)V

    goto :goto_0
.end method

.method private l()Ljava/lang/Boolean;
    .locals 1

    iget-object v0, p0, Lcom/wqmobile/sdk/a/a;->o:Lcom/wqmobile/sdk/protocol/c;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/wqmobile/sdk/a/a;->o:Lcom/wqmobile/sdk/protocol/c;

    invoke-virtual {v0}, Lcom/wqmobile/sdk/protocol/c;->a()Ljava/lang/Boolean;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    if-nez v0, :cond_1

    :cond_0
    iget v0, p0, Lcom/wqmobile/sdk/a/a;->B:I

    if-lez v0, :cond_2

    :cond_1
    iget-boolean v0, p0, Lcom/wqmobile/sdk/a/a;->D:Z

    if-nez v0, :cond_2

    const/4 v0, 0x1

    invoke-static {v0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    :goto_0
    return-object v0

    :cond_2
    const/4 v0, 0x0

    invoke-static {v0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    goto :goto_0
.end method


# virtual methods
.method public final a(Ljava/lang/String;)Lcom/wqmobile/sdk/model/AppSettings;
    .locals 5

    const/16 v3, 0x14

    const/4 v1, 0x0

    iput-object p1, p0, Lcom/wqmobile/sdk/a/a;->d:Ljava/lang/String;

    sget-object v0, Lcom/wqmobile/sdk/a/f;->a:Ljava/lang/Boolean;

    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    if-eqz v0, :cond_0

    new-instance v0, Ljava/lang/StringBuilder;

    const-string v2, "in getAppSettings@@@@"

    invoke-direct {v0, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v2, p0, Lcom/wqmobile/sdk/a/a;->d:Ljava/lang/String;

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/wqmobile/sdk/a/f;->a(Ljava/lang/String;)V

    :cond_0
    :try_start_0
    iget-object v0, p0, Lcom/wqmobile/sdk/a/a;->e:Lcom/wqmobile/sdk/pojoxml/core/PojoXmlFactory;

    invoke-virtual {v0}, Lcom/wqmobile/sdk/pojoxml/core/PojoXmlFactory;->createPojoXml()Lcom/wqmobile/sdk/pojoxml/core/PojoXml;

    move-result-object v0

    iput-object v0, p0, Lcom/wqmobile/sdk/a/a;->a:Lcom/wqmobile/sdk/pojoxml/core/PojoXml;

    iget-object v0, p0, Lcom/wqmobile/sdk/a/a;->a:Lcom/wqmobile/sdk/pojoxml/core/PojoXml;

    const-class v2, Lcom/wqmobile/sdk/model/AppSettings;

    invoke-interface {v0, p1, v2}, Lcom/wqmobile/sdk/pojoxml/core/PojoXml;->getPojo(Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/wqmobile/sdk/model/AppSettings;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :try_start_1
    invoke-virtual {v0}, Lcom/wqmobile/sdk/model/AppSettings;->getTestMode()Ljava/lang/String;

    move-result-object v1

    const-string v2, "N"

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_1

    invoke-virtual {v0}, Lcom/wqmobile/sdk/model/AppSettings;->getRefreshRate()Ljava/lang/Integer;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I

    move-result v1

    if-ge v1, v3, :cond_1

    const/16 v1, 0x14

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/wqmobile/sdk/model/AppSettings;->setRefreshRate(Ljava/lang/Integer;)V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_1

    :cond_1
    :goto_0
    invoke-direct {p0, v0}, Lcom/wqmobile/sdk/a/a;->b(Lcom/wqmobile/sdk/model/AppSettings;)V

    iget-object v1, p0, Lcom/wqmobile/sdk/a/a;->x:Landroid/os/Handler;

    const/4 v2, 0x1

    invoke-virtual {v1, v2}, Landroid/os/Handler;->sendEmptyMessage(I)Z

    return-object v0

    :catch_0
    move-exception v0

    :goto_1
    invoke-virtual {v0}, Ljava/lang/Exception;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/wqmobile/sdk/a/f;->a(Ljava/lang/String;)V

    move-object v0, v1

    goto :goto_0

    :catch_1
    move-exception v1

    move-object v4, v1

    move-object v1, v0

    move-object v0, v4

    goto :goto_1
.end method

.method public final a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/Boolean;
    .locals 4

    const/4 v0, 0x1

    invoke-static {v0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    :try_start_0
    invoke-static {p1, p2, p3}, Lcom/wq/utility/MyApiAdapter;->SendSMS(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Z
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :goto_0
    return-object v0

    :catch_0
    move-exception v0

    const-string v1, "SMS Error"

    invoke-virtual {v0}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;

    move-result-object v2

    invoke-static {v1, v2}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    const/4 v1, 0x0

    invoke-static {v1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v1

    new-instance v2, Ljava/lang/StringBuilder;

    const-string v3, "method sendSMS:"

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Ljava/lang/Exception;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/wqmobile/sdk/a/f;->a(Ljava/lang/String;)V

    move-object v0, v1

    goto :goto_0
.end method

.method public final a(Lcom/wqmobile/sdk/model/AppSettings;)Ljava/lang/String;
    .locals 4

    const/4 v0, 0x0

    invoke-direct {p0, p1}, Lcom/wqmobile/sdk/a/a;->b(Lcom/wqmobile/sdk/model/AppSettings;)V

    :try_start_0
    iget-object v1, p0, Lcom/wqmobile/sdk/a/a;->e:Lcom/wqmobile/sdk/pojoxml/core/PojoXmlFactory;

    invoke-virtual {v1}, Lcom/wqmobile/sdk/pojoxml/core/PojoXmlFactory;->createPojoXml()Lcom/wqmobile/sdk/pojoxml/core/PojoXml;

    move-result-object v1

    iput-object v1, p0, Lcom/wqmobile/sdk/a/a;->a:Lcom/wqmobile/sdk/pojoxml/core/PojoXml;

    iget-object v1, p0, Lcom/wqmobile/sdk/a/a;->a:Lcom/wqmobile/sdk/pojoxml/core/PojoXml;

    invoke-interface {v1, p1}, Lcom/wqmobile/sdk/pojoxml/core/PojoXml;->getXml(Ljava/lang/Object;)Ljava/lang/String;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move-result-object v0

    :goto_0
    iput-object v0, p0, Lcom/wqmobile/sdk/a/a;->d:Ljava/lang/String;

    sget-object v1, Lcom/wqmobile/sdk/a/f;->a:Ljava/lang/Boolean;

    invoke-virtual {v1}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v1

    if-eqz v1, :cond_0

    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "in getAppSettings(AppSetting)@@@@"

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v2, p0, Lcom/wqmobile/sdk/a/a;->d:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Lcom/wqmobile/sdk/a/f;->a(Ljava/lang/String;)V

    :cond_0
    return-object v0

    :catch_0
    move-exception v1

    new-instance v2, Ljava/lang/StringBuilder;

    const-string v3, "method getAppSettings:"

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v1}, Ljava/lang/Exception;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Lcom/wqmobile/sdk/a/f;->a(Ljava/lang/String;)V

    goto :goto_0
.end method

.method public final a(Ljava/io/InputStream;)Ljava/lang/String;
    .locals 4

    new-instance v0, Ljava/io/BufferedReader;

    new-instance v1, Ljava/io/InputStreamReader;

    invoke-direct {v1, p1}, Ljava/io/InputStreamReader;-><init>(Ljava/io/InputStream;)V

    invoke-direct {v0, v1}, Ljava/io/BufferedReader;-><init>(Ljava/io/Reader;)V

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    :goto_0
    :try_start_0
    invoke-virtual {v0}, Ljava/io/BufferedReader;->readLine()Ljava/lang/String;
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0

    move-result-object v2

    if-nez v2, :cond_0

    :try_start_1
    invoke-virtual {p1}, Ljava/io/InputStream;->close()V
    :try_end_1
    .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_3

    :goto_1
    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0

    :cond_0
    :try_start_2
    new-instance v3, Ljava/lang/StringBuilder;

    invoke-static {v2}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v2

    invoke-direct {v3, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v2, "\n"

    invoke-virtual {v3, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0
    .catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    :try_start_3
    invoke-virtual {v0}, Ljava/io/IOException;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/wqmobile/sdk/a/f;->a(Ljava/lang/String;)V
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_0

    :try_start_4
    invoke-virtual {p1}, Ljava/io/InputStream;->close()V
    :try_end_4
    .catch Ljava/io/IOException; {:try_start_4 .. :try_end_4} :catch_1

    goto :goto_1

    :catch_1
    move-exception v0

    invoke-virtual {v0}, Ljava/io/IOException;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/wqmobile/sdk/a/f;->a(Ljava/lang/String;)V

    goto :goto_1

    :catchall_0
    move-exception v0

    :try_start_5
    invoke-virtual {p1}, Ljava/io/InputStream;->close()V
    :try_end_5
    .catch Ljava/io/IOException; {:try_start_5 .. :try_end_5} :catch_2

    :goto_2
    throw v0

    :catch_2
    move-exception v1

    invoke-virtual {v1}, Ljava/io/IOException;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Lcom/wqmobile/sdk/a/f;->a(Ljava/lang/String;)V

    goto :goto_2

    :catch_3
    move-exception v0

    invoke-virtual {v0}, Ljava/io/IOException;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/wqmobile/sdk/a/f;->a(Ljava/lang/String;)V

    goto :goto_1
.end method

.method public final a()V
    .locals 2

    sget-object v0, Lcom/wqmobile/sdk/a/a;->i:Lcom/wqmobile/sdk/model/CacheOfflineADs;

    if-eqz v0, :cond_0

    sget-object v0, Lcom/wqmobile/sdk/a/a;->i:Lcom/wqmobile/sdk/model/CacheOfflineADs;

    invoke-virtual {v0}, Lcom/wqmobile/sdk/model/CacheOfflineADs;->getOfflineADs()Ljava/util/List;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-lez v0, :cond_0

    iget-object v0, p0, Lcom/wqmobile/sdk/a/a;->p:Ljava/lang/Boolean;

    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/wqmobile/sdk/a/a;->g:Landroid/content/Context;

    sget-object v1, Lcom/wqmobile/sdk/a/a;->i:Lcom/wqmobile/sdk/model/CacheOfflineADs;

    invoke-static {v0, v1}, Lcom/wqmobile/sdk/b/a;->a(Landroid/content/Context;Lcom/wqmobile/sdk/model/CacheOfflineADs;)V

    iget-object v0, p0, Lcom/wqmobile/sdk/a/a;->g:Landroid/content/Context;

    invoke-static {v0}, Lcom/wqmobile/sdk/b/a;->a(Landroid/content/Context;)Lcom/wqmobile/sdk/model/CacheOfflineADs;

    const/4 v0, 0x0

    invoke-static {v0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    iput-object v0, p0, Lcom/wqmobile/sdk/a/a;->p:Ljava/lang/Boolean;

    :cond_0
    iget-object v0, p0, Lcom/wqmobile/sdk/a/a;->g:Landroid/content/Context;

    sget-object v1, Lcom/wqmobile/sdk/a/a;->j:Lcom/wqmobile/sdk/model/OfflineADs;

    invoke-static {v0, v1}, Lcom/wqmobile/sdk/b/a;->a(Landroid/content/Context;Lcom/wqmobile/sdk/model/OfflineADs;)V

    return-void
.end method

.method public final a(II)V
    .locals 0

    iput p1, p0, Lcom/wqmobile/sdk/a/a;->q:I

    iput p2, p0, Lcom/wqmobile/sdk/a/a;->r:I

    return-void
.end method

.method public final a(Ljava/lang/String;Landroid/graphics/drawable/BitmapDrawable;)V
    .locals 3

    sget-object v0, Lcom/wqmobile/sdk/a/f;->a:Ljava/lang/Boolean;

    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    if-eqz v0, :cond_0

    const-string v0, "DrawableHashMap"

    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "add:"

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/wqmobile/sdk/a/f;->a(Ljava/lang/String;Ljava/lang/String;)V

    :cond_0
    iget-object v0, p0, Lcom/wqmobile/sdk/a/a;->y:Ljava/util/HashMap;

    invoke-virtual {v0, p1, p2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    return-void
.end method

.method public final a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
    .locals 5

    const/4 v4, 0x1

    const/4 v3, 0x0

    new-instance v0, Landroid/content/Intent;

    const-string v1, "android.intent.action.SEND"

    invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    const-string v1, "android.intent.extra.EMAIL"

    new-array v2, v4, [Ljava/lang/String;

    aput-object p1, v2, v3

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;[Ljava/lang/String;)Landroid/content/Intent;

    const-string v1, "android.intent.extra.SUBJECT"

    new-array v2, v4, [Ljava/lang/String;

    aput-object p2, v2, v3

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;[Ljava/lang/String;)Landroid/content/Intent;

    const-string v1, "android.intent.extra.TEXT"

    invoke-virtual {v0, v1, p3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string v1, "text/plain"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->setType(Ljava/lang/String;)Landroid/content/Intent;

    iget-object v1, p0, Lcom/wqmobile/sdk/a/a;->g:Landroid/content/Context;

    invoke-virtual {v1, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    return-void
.end method

.method public final a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Integer;)V
    .locals 8

    const-string v5, ""

    const/4 v6, 0x0

    const/4 v7, 0x0

    move-object v0, p0

    move-object v1, p1

    move-object v2, p2

    move-object v3, p3

    move-object v4, p4

    invoke-virtual/range {v0 .. v7}, Lcom/wqmobile/sdk/a/a;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Integer;Ljava/lang/String;ZLcom/wqmobile/sdk/widget/ADView;)V

    return-void
.end method

.method public final a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Integer;Ljava/lang/String;ZLcom/wqmobile/sdk/widget/ADView;)V
    .locals 7

    new-instance v0, Ljava/lang/Exception;

    invoke-direct {v0}, Ljava/lang/Exception;-><init>()V

    invoke-virtual {v0}, Ljava/lang/Exception;->getStackTrace()[Ljava/lang/StackTraceElement;

    move-result-object v0

    const/4 v1, 0x1

    aget-object v1, v0, v1

    const/4 v2, 0x2

    aget-object v0, v0, v2

    sget-object v2, Lcom/wqmobile/sdk/a/f;->a:Ljava/lang/Boolean;

    invoke-virtual {v2}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v2

    if-eqz v2, :cond_0

    const-string v2, "TestNewLoop"

    const-string v3, "in sendUserRespone"

    invoke-static {v2, v3}, Lcom/wqmobile/sdk/a/f;->a(Ljava/lang/String;Ljava/lang/String;)V

    :cond_0
    invoke-virtual {v1}, Ljava/lang/StackTraceElement;->getClassName()Ljava/lang/String;

    move-result-object v1

    const-class v2, Lcom/wqmobile/sdk/widget/ADView;

    invoke-virtual {v2}, Ljava/lang/Class;->getName()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v1

    if-gez v1, :cond_1

    invoke-virtual {v0}, Ljava/lang/StackTraceElement;->getClassName()Ljava/lang/String;

    move-result-object v0

    const-class v1, Lcom/wqmobile/sdk/widget/ADView;

    invoke-virtual {v1}, Ljava/lang/Class;->getName()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v0

    if-ltz v0, :cond_4

    :cond_1
    :try_start_0
    new-instance v0, Ljava/lang/StringBuilder;

    const-string v1, "adId:"

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, ","

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, "type:"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/wqmobile/sdk/a/f;->a(Ljava/lang/String;)V

    iget-object v0, p0, Lcom/wqmobile/sdk/a/a;->g:Landroid/content/Context;

    invoke-direct {p0, v0}, Lcom/wqmobile/sdk/a/a;->c(Landroid/content/Context;)Ljava/lang/Boolean;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    if-eqz v0, :cond_2

    iget-object v0, p0, Lcom/wqmobile/sdk/a/a;->o:Lcom/wqmobile/sdk/protocol/c;

    if-eqz v0, :cond_2

    new-instance v0, Ljava/sql/Timestamp;

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v1

    invoke-direct {v0, v1, v2}, Ljava/sql/Timestamp;-><init>(J)V

    new-instance v1, Ljava/text/SimpleDateFormat;

    const-string v2, "yyyy-MM-dd HH:mm:ss"

    invoke-direct {v1, v2}, Ljava/text/SimpleDateFormat;-><init>(Ljava/lang/String;)V

    invoke-virtual {v1, v0}, Ljava/text/SimpleDateFormat;->format(Ljava/util/Date;)Ljava/lang/String;

    move-result-object v2

    iget-object v0, p0, Lcom/wqmobile/sdk/a/a;->s:Ljava/lang/String;

    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v0

    if-lez v0, :cond_3

    iget-object v0, p0, Lcom/wqmobile/sdk/a/a;->t:Ljava/lang/Boolean;

    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    if-eqz v0, :cond_3

    move-object v0, p0

    move-object v1, p1

    move-object v3, p2

    move-object v4, p3

    move-object v5, p4

    move-object v6, p5

    invoke-direct/range {v0 .. v6}, Lcom/wqmobile/sdk/a/a;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Integer;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iget-object v1, p0, Lcom/wqmobile/sdk/a/a;->o:Lcom/wqmobile/sdk/protocol/c;

    invoke-virtual {v1, v0, p6}, Lcom/wqmobile/sdk/protocol/c;->a(Ljava/lang/String;Z)V

    :goto_0
    if-eqz p6, :cond_2

    if-eqz p7, :cond_2

    iget-object v0, p0, Lcom/wqmobile/sdk/a/a;->u:Ljava/util/List;

    invoke-interface {v0, p7}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    const-string v0, "Got one view need ack user response"

    invoke-static {v0}, Lcom/wqmobile/sdk/a/f;->a(Ljava/lang/String;)V

    :cond_2
    :goto_1
    return-void

    :cond_3
    invoke-direct {p0}, Lcom/wqmobile/sdk/a/a;->i()V

    const-string v6, ""

    move-object v0, p0

    move-object v1, p1

    move-object v3, p2

    move-object v4, p3

    move-object v5, p4

    invoke-direct/range {v0 .. v6}, Lcom/wqmobile/sdk/a/a;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Integer;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iget-object v1, p0, Lcom/wqmobile/sdk/a/a;->o:Lcom/wqmobile/sdk/protocol/c;

    invoke-virtual {v1, v0, p6}, Lcom/wqmobile/sdk/protocol/c;->a(Ljava/lang/String;Z)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    goto :goto_1

    :cond_4
    invoke-virtual {p0}, Lcom/wqmobile/sdk/a/a;->e()V

    goto :goto_1
.end method

.method public final a(Ljava/util/List;)V
    .locals 13

    const/4 v12, 0x1

    const/4 v11, 0x0

    new-instance v0, Ljava/lang/Exception;

    invoke-direct {v0}, Ljava/lang/Exception;-><init>()V

    invoke-virtual {v0}, Ljava/lang/Exception;->getStackTrace()[Ljava/lang/StackTraceElement;

    move-result-object v0

    aget-object v1, v0, v12

    const/4 v2, 0x2

    aget-object v0, v0, v2

    sget-object v2, Lcom/wqmobile/sdk/a/f;->a:Ljava/lang/Boolean;

    invoke-virtual {v2}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v2

    if-eqz v2, :cond_1

    const-string v2, "TestNewLoop"

    new-instance v3, Ljava/lang/StringBuilder;

    const-string v4, "e1:"

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v1}, Ljava/lang/StackTraceElement;->getClassName()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string v4, " ADView class:"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    const-class v4, Lcom/wqmobile/sdk/widget/ADView;

    invoke-virtual {v4}, Ljava/lang/Class;->getName()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string v4, " e2:"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v0}, Ljava/lang/StackTraceElement;->getClassName()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v2, v3}, Lcom/wqmobile/sdk/a/f;->a(Ljava/lang/String;Ljava/lang/String;)V

    invoke-virtual {v1}, Ljava/lang/StackTraceElement;->getClassName()Ljava/lang/String;

    move-result-object v2

    const-class v3, Lcom/wqmobile/sdk/widget/ADView;

    invoke-virtual {v3}, Ljava/lang/Class;->getName()Ljava/lang/String;

    move-result-object v3

    if-eq v2, v3, :cond_0

    const-string v2, "TestNewLoop"

    const-string v3, "111"

    invoke-static {v2, v3}, Lcom/wqmobile/sdk/a/f;->a(Ljava/lang/String;Ljava/lang/String;)V

    :cond_0
    const-string v2, "TestNewLoop"

    new-instance v3, Ljava/lang/StringBuilder;

    const-string v4, "index:"

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Ljava/lang/StackTraceElement;->getClassName()Ljava/lang/String;

    move-result-object v4

    const-string v5, "qwbfdjkh"

    invoke-virtual {v4, v5}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v2, v3}, Lcom/wqmobile/sdk/a/f;->a(Ljava/lang/String;Ljava/lang/String;)V

    :cond_1
    invoke-virtual {v1}, Ljava/lang/StackTraceElement;->getClassName()Ljava/lang/String;

    move-result-object v1

    const-class v2, Lcom/wqmobile/sdk/widget/ADView;

    invoke-virtual {v2}, Ljava/lang/Class;->getName()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v1

    if-ltz v1, :cond_13

    invoke-virtual {v0}, Ljava/lang/StackTraceElement;->getClassName()Ljava/lang/String;

    move-result-object v0

    const-class v1, Lcom/wqmobile/sdk/widget/ADView;

    invoke-virtual {v1}, Ljava/lang/Class;->getName()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v0

    if-ltz v0, :cond_13

    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result v0

    if-nez v0, :cond_15

    sget-object v0, Lcom/wqmobile/sdk/a/a;->w:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-lez v0, :cond_15

    sget-object v1, Lcom/wqmobile/sdk/a/a;->w:Ljava/util/List;

    monitor-enter v1

    const/4 v0, -0x1

    :try_start_0
    invoke-static {}, Lcom/wqmobile/sdk/a/a;->c()I

    move-result v2

    sget-object v3, Lcom/wqmobile/sdk/a/a;->w:Ljava/util/List;

    invoke-interface {v3}, Ljava/util/List;->size()I

    move-result v3

    if-le v2, v3, :cond_9

    sget-object v2, Lcom/wqmobile/sdk/a/a;->w:Ljava/util/List;

    invoke-interface {v2}, Ljava/util/List;->size()I

    move-result v2

    :goto_0
    move v3, v11

    move v4, v11

    move v5, v0

    move v6, v11

    :goto_1
    if-lt v3, v2, :cond_a

    :cond_2
    move v0, v11

    :goto_2
    if-lt v0, v4, :cond_d

    monitor-exit v1
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    move v1, v6

    :goto_3
    if-nez v1, :cond_14

    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result v0

    invoke-static {}, Lcom/wqmobile/sdk/a/a;->c()I

    move-result v2

    if-ge v0, v2, :cond_14

    sget-object v0, Lcom/wqmobile/sdk/a/f;->a:Ljava/lang/Boolean;

    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    if-eqz v0, :cond_3

    const-string v0, "TestNewLoop"

    new-instance v2, Ljava/lang/StringBuilder;

    const-string v3, "Ad List size:"

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    sget-object v3, Lcom/wqmobile/sdk/a/a;->v:Ljava/util/List;

    invoke-interface {v3}, Ljava/util/List;->size()I

    move-result v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, " list size:"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v0, v2}, Lcom/wqmobile/sdk/a/f;->a(Ljava/lang/String;Ljava/lang/String;)V

    :cond_3
    sget-object v2, Lcom/wqmobile/sdk/a/a;->v:Ljava/util/List;

    monitor-enter v2

    move v3, v11

    :goto_4
    :try_start_1
    sget-object v0, Lcom/wqmobile/sdk/a/a;->v:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-lt v3, v0, :cond_e

    move v0, v1

    :goto_5
    monitor-exit v2
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_1

    :goto_6
    if-nez v0, :cond_7

    sget-object v0, Lcom/wqmobile/sdk/a/f;->a:Ljava/lang/Boolean;

    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    if-eqz v0, :cond_4

    const-string v0, "offline ad"

    const-string v1, "in getofflinads"

    invoke-static {v0, v1}, Lcom/wqmobile/sdk/a/f;->a(Ljava/lang/String;Ljava/lang/String;)V

    :cond_4
    sget-object v0, Lcom/wqmobile/sdk/a/a;->i:Lcom/wqmobile/sdk/model/CacheOfflineADs;

    if-eqz v0, :cond_7

    sget-object v0, Lcom/wqmobile/sdk/a/a;->i:Lcom/wqmobile/sdk/model/CacheOfflineADs;

    invoke-virtual {v0}, Lcom/wqmobile/sdk/model/CacheOfflineADs;->getOfflineADs()Ljava/util/List;

    move-result-object v0

    if-eqz v0, :cond_7

    sget-object v0, Lcom/wqmobile/sdk/a/a;->i:Lcom/wqmobile/sdk/model/CacheOfflineADs;

    invoke-virtual {v0}, Lcom/wqmobile/sdk/model/CacheOfflineADs;->getOfflineADs()Ljava/util/List;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-lez v0, :cond_7

    sget-object v0, Lcom/wqmobile/sdk/a/a;->c:Lcom/wqmobile/sdk/model/AppSettings;

    if-eqz v0, :cond_7

    sget-object v0, Lcom/wqmobile/sdk/a/a;->c:Lcom/wqmobile/sdk/model/AppSettings;

    invoke-virtual {v0}, Lcom/wqmobile/sdk/model/AppSettings;->acceptsOfflineAd()Z

    move-result v0

    if-eqz v0, :cond_7

    sget-object v0, Lcom/wqmobile/sdk/a/a;->m:Ljava/lang/Integer;

    if-eqz v0, :cond_12

    sget-object v0, Lcom/wqmobile/sdk/a/a;->m:Ljava/lang/Integer;

    invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I

    move-result v0

    if-ltz v0, :cond_5

    sget v0, Lcom/wqmobile/sdk/a/a;->l:I

    sget-object v1, Lcom/wqmobile/sdk/a/a;->m:Ljava/lang/Integer;

    invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I

    move-result v1

    if-ge v0, v1, :cond_12

    :cond_5
    move v0, v12

    :goto_7
    if-eqz v0, :cond_7

    sget v0, Lcom/wqmobile/sdk/a/a;->h:I

    sget-object v1, Lcom/wqmobile/sdk/a/a;->i:Lcom/wqmobile/sdk/model/CacheOfflineADs;

    invoke-virtual {v1}, Lcom/wqmobile/sdk/model/CacheOfflineADs;->getOfflineADs()Ljava/util/List;

    move-result-object v1

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    if-lt v0, v1, :cond_6

    sput v11, Lcom/wqmobile/sdk/a/a;->h:I

    :cond_6
    sget-object v0, Lcom/wqmobile/sdk/a/a;->i:Lcom/wqmobile/sdk/model/CacheOfflineADs;

    invoke-virtual {v0}, Lcom/wqmobile/sdk/model/CacheOfflineADs;->getOfflineADs()Ljava/util/List;

    move-result-object v0

    sget v1, Lcom/wqmobile/sdk/a/a;->h:I

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/wqmobile/sdk/model/AdvertisementProperties;

    invoke-static {}, Lcom/wqmobile/sdk/a/a;->d()I

    move-result v1

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/wqmobile/sdk/model/AdvertisementProperties;->setRemainShowTime(Ljava/lang/Integer;)V

    invoke-static {v11}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/wqmobile/sdk/model/AdvertisementProperties;->setRunningCount(Ljava/lang/Integer;)V

    invoke-interface {p1, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    const-string v0, "offline ad"

    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "getofflineIndex:"

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    sget v2, Lcom/wqmobile/sdk/a/a;->h:I

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/wqmobile/sdk/a/f;->a(Ljava/lang/String;Ljava/lang/String;)V

    sget v0, Lcom/wqmobile/sdk/a/a;->h:I

    add-int/lit8 v0, v0, 0x1

    sput v0, Lcom/wqmobile/sdk/a/a;->h:I

    sget v0, Lcom/wqmobile/sdk/a/a;->l:I

    add-int/lit8 v0, v0, 0x1

    sput v0, Lcom/wqmobile/sdk/a/a;->l:I

    :cond_7
    sget-object v0, Lcom/wqmobile/sdk/a/a;->v:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    invoke-static {}, Lcom/wqmobile/sdk/a/a;->c()I

    move-result v1

    if-ge v0, v1, :cond_8

    iget-object v0, p0, Lcom/wqmobile/sdk/a/a;->x:Landroid/os/Handler;

    invoke-virtual {v0, v12}, Landroid/os/Handler;->sendEmptyMessage(I)Z

    :cond_8
    :goto_8
    return-void

    :cond_9
    :try_start_2
    invoke-static {}, Lcom/wqmobile/sdk/a/a;->c()I

    move-result v2

    goto/16 :goto_0

    :cond_a
    sget-object v0, Lcom/wqmobile/sdk/a/a;->w:Ljava/util/List;

    invoke-interface {v0, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/wqmobile/sdk/model/AdvertisementProperties;

    invoke-virtual {v0}, Lcom/wqmobile/sdk/model/AdvertisementProperties;->getRunningCount()Ljava/lang/Integer;

    move-result-object v7

    invoke-virtual {v7}, Ljava/lang/Integer;->intValue()I

    move-result v7

    sget-object v8, Lcom/wqmobile/sdk/a/f;->a:Ljava/lang/Boolean;

    invoke-virtual {v8}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v8

    if-eqz v8, :cond_b

    const-string v8, "TestNewLoop"

    new-instance v9, Ljava/lang/StringBuilder;

    const-string v10, "pre count:"

    invoke-direct {v9, v10}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v9, v5}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v9

    const-string v10, " cur count "

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    invoke-virtual {v9, v7}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v9

    invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v9

    invoke-static {v8, v9}, Lcom/wqmobile/sdk/a/f;->a(Ljava/lang/String;Ljava/lang/String;)V

    :cond_b
    if-eqz v3, :cond_c

    if-gt v7, v5, :cond_2

    :cond_c
    invoke-interface {p1, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    const-string v5, "TestNewLoop"

    new-instance v6, Ljava/lang/StringBuilder;

    const-string v8, "pull unfinish ad id:"

    invoke-direct {v6, v8}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Lcom/wqmobile/sdk/model/AdvertisementProperties;->getAdID()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v6, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v5, v0}, Lcom/wqmobile/sdk/a/f;->a(Ljava/lang/String;Ljava/lang/String;)V

    add-int/lit8 v0, v4, 0x1

    add-int/lit8 v3, v3, 0x1

    move v4, v0

    move v5, v7

    move v6, v12

    goto/16 :goto_1

    :cond_d
    sget-object v2, Lcom/wqmobile/sdk/a/a;->w:Ljava/util/List;

    const/4 v3, 0x0

    invoke-interface {v2, v3}, Ljava/util/List;->remove(I)Ljava/lang/Object;
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    add-int/lit8 v0, v0, 0x1

    goto/16 :goto_2

    :catchall_0
    move-exception v0

    monitor-exit v1

    throw v0

    :cond_e
    :try_start_3
    sget-object v0, Lcom/wqmobile/sdk/a/a;->v:Ljava/util/List;

    invoke-interface {v0, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/wqmobile/sdk/model/AdvertisementProperties;

    if-eqz v0, :cond_11

    invoke-virtual {v0}, Lcom/wqmobile/sdk/model/AdvertisementProperties;->getRunningCount()Ljava/lang/Integer;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/Integer;->intValue()I

    move-result v4

    if-gez v4, :cond_11

    sget-object v1, Lcom/wqmobile/sdk/a/f;->a:Ljava/lang/Boolean;

    invoke-virtual {v1}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v1

    if-eqz v1, :cond_f

    const-string v1, "TestNewLoop"

    new-instance v4, Ljava/lang/StringBuilder;

    const-string v5, "going to add new ad:"

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Lcom/wqmobile/sdk/model/AdvertisementProperties;->getAdID()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-static {v1, v4}, Lcom/wqmobile/sdk/a/f;->a(Ljava/lang/String;Ljava/lang/String;)V

    :cond_f
    const/4 v1, 0x0

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/wqmobile/sdk/model/AdvertisementProperties;->setRunningCount(Ljava/lang/Integer;)V

    invoke-static {}, Lcom/wqmobile/sdk/a/a;->d()I

    move-result v1

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/wqmobile/sdk/model/AdvertisementProperties;->setRemainShowTime(Ljava/lang/Integer;)V

    invoke-interface {p1, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    sget-object v1, Lcom/wqmobile/sdk/a/a;->v:Ljava/util/List;

    invoke-interface {v1, v3}, Ljava/util/List;->remove(I)Ljava/lang/Object;

    sget-object v1, Lcom/wqmobile/sdk/a/f;->a:Ljava/lang/Boolean;

    invoke-virtual {v1}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v1

    if-eqz v1, :cond_10

    const-string v1, "2TestNewLoop"

    new-instance v3, Ljava/lang/StringBuilder;

    const-string v4, "remove ad:"

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Lcom/wqmobile/sdk/model/AdvertisementProperties;->getAdID()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v1, v0}, Lcom/wqmobile/sdk/a/f;->a(Ljava/lang/String;Ljava/lang/String;)V
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_1

    :cond_10
    move v0, v12

    goto/16 :goto_5

    :cond_11
    add-int/lit8 v0, v3, 0x1

    move v3, v0

    goto/16 :goto_4

    :catchall_1
    move-exception v0

    monitor-exit v2

    throw v0

    :cond_12
    move v0, v11

    goto/16 :goto_7

    :cond_13
    invoke-virtual {p0}, Lcom/wqmobile/sdk/a/a;->e()V

    goto/16 :goto_8

    :cond_14
    move v0, v1

    goto/16 :goto_6

    :cond_15
    move v1, v11

    goto/16 :goto_3
.end method

.method public final b(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V
    .locals 4

    :try_start_0
    new-instance v0, Landroid/content/Intent;

    const-string v1, "android.intent.action.CALL"

    new-instance v2, Ljava/lang/StringBuilder;

    const-string v3, "tel:"

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v2, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v2

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Ljava/lang/String;Landroid/net/Uri;)V

    invoke-virtual {p1, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :cond_0
    :goto_0
    return-void

    :catch_0
    move-exception v0

    invoke-virtual {v0}, Ljava/lang/Exception;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/wqmobile/sdk/a/f;->a(Ljava/lang/String;)V

    invoke-virtual {p3}, Ljava/lang/String;->length()I

    move-result v0

    if-lez v0, :cond_0

    invoke-static {p1, p3}, Lcom/wqmobile/sdk/a/a;->a(Landroid/content/Context;Ljava/lang/String;)V

    goto :goto_0
.end method

.method public final b(Ljava/util/List;)V
    .locals 5

    sget-object v0, Lcom/wqmobile/sdk/a/a;->w:Ljava/util/List;

    monitor-enter v0

    :try_start_0
    invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :goto_0
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-nez v2, :cond_0

    monitor-exit v0

    return-void

    :cond_0
    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Lcom/wqmobile/sdk/model/AdvertisementProperties;

    sget-object v2, Lcom/wqmobile/sdk/a/a;->w:Ljava/util/List;

    invoke-interface {v2, p0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    const-string v2, "TestNewLoop"

    new-instance v3, Ljava/lang/StringBuilder;

    const-string v4, "add unfinish ad id:"

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {p0}, Lcom/wqmobile/sdk/model/AdvertisementProperties;->getAdID()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v2, v3}, Lcom/wqmobile/sdk/a/f;->a(Ljava/lang/String;Ljava/lang/String;)V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    goto :goto_0

    :catchall_0
    move-exception v1

    monitor-exit v0

    throw v1
.end method

.method public final c(Lcom/wqmobile/sdk/model/AdvertisementProperties;)Ljava/lang/String;
    .locals 2

    if-eqz p1, :cond_0

    invoke-virtual {p1}, Lcom/wqmobile/sdk/model/AdvertisementProperties;->getAction()Lcom/wqmobile/sdk/model/AdvertisementAction;

    move-result-object v0

    if-nez v0, :cond_1

    :cond_0
    const-string v0, ""

    :goto_0
    return-object v0

    :cond_1
    invoke-virtual {p1}, Lcom/wqmobile/sdk/model/AdvertisementProperties;->getAction()Lcom/wqmobile/sdk/model/AdvertisementAction;

    move-result-object v0

    invoke-virtual {v0}, Lcom/wqmobile/sdk/model/AdvertisementAction;->getActionType()Ljava/lang/String;

    move-result-object v0

    const-string v1, "1"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_2

    sget-object v0, Lcom/wqmobile/sdk/a/a;->c:Lcom/wqmobile/sdk/model/AppSettings;

    invoke-virtual {v0}, Lcom/wqmobile/sdk/model/AppSettings;->isOpenInEmbeddedBrowser()Z

    move-result v0

    if-nez v0, :cond_2

    const-string v0, "\u6d4f\u89c8"

    goto :goto_0

    :cond_2
    invoke-virtual {p1}, Lcom/wqmobile/sdk/model/AdvertisementProperties;->getAction()Lcom/wqmobile/sdk/model/AdvertisementAction;

    move-result-object v0

    invoke-virtual {v0}, Lcom/wqmobile/sdk/model/AdvertisementAction;->getActionType()Ljava/lang/String;

    move-result-object v0

    const-string v1, "2"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_3

    const-string v0, "\u4e0b\u8f7d"

    goto :goto_0

    :cond_3
    invoke-virtual {p1}, Lcom/wqmobile/sdk/model/AdvertisementProperties;->getAction()Lcom/wqmobile/sdk/model/AdvertisementAction;

    move-result-object v0

    invoke-virtual {v0}, Lcom/wqmobile/sdk/model/AdvertisementAction;->getActionType()Ljava/lang/String;

    move-result-object v0

    const-string v1, "3"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_4

    const-string v0, "\u4e0b\u8f7d"

    goto :goto_0

    :cond_4
    invoke-virtual {p1}, Lcom/wqmobile/sdk/model/AdvertisementProperties;->getAction()Lcom/wqmobile/sdk/model/AdvertisementAction;

    move-result-object v0

    invoke-virtual {v0}, Lcom/wqmobile/sdk/model/AdvertisementAction;->getActionType()Ljava/lang/String;

    move-result-object v0

    const-string v1, "4"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_5

    const-string v0, "\u4e0b\u8f7d"

    goto :goto_0

    :cond_5
    invoke-virtual {p1}, Lcom/wqmobile/sdk/model/AdvertisementProperties;->getAction()Lcom/wqmobile/sdk/model/AdvertisementAction;

    move-result-object v0

    invoke-virtual {v0}, Lcom/wqmobile/sdk/model/AdvertisementAction;->getActionType()Ljava/lang/String;

    move-result-object v0

    const-string v1, "5"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_6

    const-string v0, "\u64ad\u653e"

    goto :goto_0

    :cond_6
    invoke-virtual {p1}, Lcom/wqmobile/sdk/model/AdvertisementProperties;->getAction()Lcom/wqmobile/sdk/model/AdvertisementAction;

    move-result-object v0

    invoke-virtual {v0}, Lcom/wqmobile/sdk/model/AdvertisementAction;->getActionType()Ljava/lang/String;

    move-result-object v0

    const-string v1, "6"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_7

    const-string v0, "\u7535\u8bdd"

    goto :goto_0

    :cond_7
    invoke-virtual {p1}, Lcom/wqmobile/sdk/model/AdvertisementProperties;->getAction()Lcom/wqmobile/sdk/model/AdvertisementAction;

    move-result-object v0

    invoke-virtual {v0}, Lcom/wqmobile/sdk/model/AdvertisementAction;->getActionType()Ljava/lang/String;

    move-result-object v0

    const-string v1, "7"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_8

    const-string v0, "\u5730\u56fe"

    goto/16 :goto_0

    :cond_8
    invoke-virtual {p1}, Lcom/wqmobile/sdk/model/AdvertisementProperties;->getAction()Lcom/wqmobile/sdk/model/AdvertisementAction;

    move-result-object v0

    invoke-virtual {v0}, Lcom/wqmobile/sdk/model/AdvertisementAction;->getActionType()Ljava/lang/String;

    move-result-object v0

    const-string v1, "8"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_9

    sget-object v0, Lcom/wqmobile/sdk/a/a;->c:Lcom/wqmobile/sdk/model/AppSettings;

    invoke-virtual {v0}, Lcom/wqmobile/sdk/model/AppSettings;->isOpenInEmbeddedBrowser()Z

    move-result v0

    if-nez v0, :cond_9

    const-string v0, "\u641c\u7d22"

    goto/16 :goto_0

    :cond_9
    invoke-virtual {p1}, Lcom/wqmobile/sdk/model/AdvertisementProperties;->getAction()Lcom/wqmobile/sdk/model/AdvertisementAction;

    move-result-object v0

    invoke-virtual {v0}, Lcom/wqmobile/sdk/model/AdvertisementAction;->getActionType()Ljava/lang/String;

    move-result-object v0

    const-string v1, "9"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_a

    const-string v0, "\u77ed\u4fe1"

    goto/16 :goto_0

    :cond_a
    invoke-virtual {p1}, Lcom/wqmobile/sdk/model/AdvertisementProperties;->getAction()Lcom/wqmobile/sdk/model/AdvertisementAction;

    move-result-object v0

    invoke-virtual {v0}, Lcom/wqmobile/sdk/model/AdvertisementAction;->getActionType()Ljava/lang/String;

    move-result-object v0

    const-string v1, "10"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_b

    const-string v0, "\u90ae\u4ef6"

    goto/16 :goto_0

    :cond_b
    invoke-virtual {p1}, Lcom/wqmobile/sdk/model/AdvertisementProperties;->getAction()Lcom/wqmobile/sdk/model/AdvertisementAction;

    move-result-object v0

    invoke-virtual {v0}, Lcom/wqmobile/sdk/model/AdvertisementAction;->getActionType()Ljava/lang/String;

    move-result-object v0

    const-string v1, "13"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_c

    const-string v0, "\u6d4f\u89c8"

    goto/16 :goto_0

    :cond_c
    const-string v0, ""

    goto/16 :goto_0
.end method

.method public final d(Ljava/lang/String;)Landroid/graphics/drawable/BitmapDrawable;
    .locals 3

    sget-object v0, Lcom/wqmobile/sdk/a/f;->a:Ljava/lang/Boolean;

    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    if-eqz v0, :cond_0

    const-string v0, "DrawableHashMap"

    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "contains:"

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/wqmobile/sdk/a/f;->a(Ljava/lang/String;Ljava/lang/String;)V

    :cond_0
    iget-object v0, p0, Lcom/wqmobile/sdk/a/a;->y:Ljava/util/HashMap;

    invoke-virtual {v0, p1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Landroid/graphics/drawable/BitmapDrawable;

    return-object p0
.end method

.method public final e()V
    .locals 2

    new-instance v0, Ljava/lang/Exception;

    invoke-direct {v0}, Ljava/lang/Exception;-><init>()V

    invoke-static {v0}, Lcom/wqmobile/sdk/protocol/cmd/b;->a(Ljava/lang/Exception;)V

    iget-boolean v0, p0, Lcom/wqmobile/sdk/a/a;->D:Z

    if-nez v0, :cond_0

    new-instance v0, Ljava/lang/Thread;

    const-string v1, "dumpThread1"

    invoke-direct {v0, v1}, Ljava/lang/Thread;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Ljava/lang/Thread;->run()V

    :cond_0
    sget-object v0, Lcom/wqmobile/sdk/a/f;->a:Ljava/lang/Boolean;

    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    if-eqz v0, :cond_1

    const-string v0, "TestNewLoop"

    const-string v1, "Fatal ERRRRRRRRRRRRRRRRRRRRRR"

    invoke-static {v0, v1}, Lcom/wqmobile/sdk/a/f;->a(Ljava/lang/String;Ljava/lang/String;)V

    :cond_1
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/wqmobile/sdk/a/a;->D:Z

    return-void
.end method

.method public final e(Ljava/lang/String;)Z
    .locals 1

    iget-object v0, p0, Lcom/wqmobile/sdk/a/a;->y:Ljava/util/HashMap;

    invoke-virtual {v0, p1}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z

    move-result v0

    return v0
.end method

.method public final f()V
    .locals 4

    invoke-direct {p0}, Lcom/wqmobile/sdk/a/a;->l()Ljava/lang/Boolean;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    if-nez v0, :cond_8

    iget-object v0, p0, Lcom/wqmobile/sdk/a/a;->A:Ljava/lang/String;

    if-eqz v0, :cond_8

    iget-object v0, p0, Lcom/wqmobile/sdk/a/a;->A:Ljava/lang/String;

    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v0

    if-lez v0, :cond_8

    sget-object v0, Lcom/wqmobile/sdk/a/f;->a:Ljava/lang/Boolean;

    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    if-eqz v0, :cond_0

    const-string v0, "TestBacktoFore"

    const-string v1, "can not get ad right now , and view visibility change"

    invoke-static {v0, v1}, Lcom/wqmobile/sdk/a/f;->a(Ljava/lang/String;Ljava/lang/String;)V

    :cond_0
    iget-object v1, p0, Lcom/wqmobile/sdk/a/a;->A:Ljava/lang/String;

    iget-object v0, p0, Lcom/wqmobile/sdk/a/a;->C:Landroid/app/ActivityManager;

    if-eqz v0, :cond_2

    iget-object v0, p0, Lcom/wqmobile/sdk/a/a;->C:Landroid/app/ActivityManager;

    invoke-virtual {v0}, Landroid/app/ActivityManager;->getRunningAppProcesses()Ljava/util/List;

    move-result-object v0

    if-eqz v0, :cond_2

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :cond_1
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-nez v0, :cond_6

    :cond_2
    const/4 v0, 0x0

    :goto_0
    if-eqz v0, :cond_7

    sget-object v0, Lcom/wqmobile/sdk/a/f;->a:Ljava/lang/Boolean;

    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    if-eqz v0, :cond_3

    const-string v0, "TestBacktoFore"

    const-string v1, "turn to fore"

    invoke-static {v0, v1}, Lcom/wqmobile/sdk/a/f;->a(Ljava/lang/String;Ljava/lang/String;)V

    :cond_3
    iget-object v0, p0, Lcom/wqmobile/sdk/a/a;->z:Lcom/wqmobile/sdk/a/b;

    sget-object v1, Lcom/wqmobile/sdk/a/b;->b:Lcom/wqmobile/sdk/a/b;

    if-ne v0, v1, :cond_4

    iget v0, p0, Lcom/wqmobile/sdk/a/a;->B:I

    add-int/lit8 v0, v0, 0x1

    iput v0, p0, Lcom/wqmobile/sdk/a/a;->B:I

    sget-object v0, Lcom/wqmobile/sdk/a/f;->a:Ljava/lang/Boolean;

    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    if-eqz v0, :cond_4

    const-string v0, "TestBacktoFore"

    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "back to fore, cout="

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget v2, p0, Lcom/wqmobile/sdk/a/a;->B:I

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/wqmobile/sdk/a/f;->a(Ljava/lang/String;Ljava/lang/String;)V

    :cond_4
    sget-object v0, Lcom/wqmobile/sdk/a/b;->c:Lcom/wqmobile/sdk/a/b;

    iput-object v0, p0, Lcom/wqmobile/sdk/a/a;->z:Lcom/wqmobile/sdk/a/b;

    :cond_5
    :goto_1
    return-void

    :cond_6
    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/app/ActivityManager$RunningAppProcessInfo;

    iget-object v3, v0, Landroid/app/ActivityManager$RunningAppProcessInfo;->processName:Ljava/lang/String;

    invoke-virtual {v3, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_1

    iget v0, v0, Landroid/app/ActivityManager$RunningAppProcessInfo;->importance:I

    const/16 v3, 0x64

    if-ne v0, v3, :cond_1

    const/4 v0, 0x1

    goto :goto_0

    :cond_7
    sget-object v0, Lcom/wqmobile/sdk/a/b;->b:Lcom/wqmobile/sdk/a/b;

    iput-object v0, p0, Lcom/wqmobile/sdk/a/a;->z:Lcom/wqmobile/sdk/a/b;

    sget-object v0, Lcom/wqmobile/sdk/a/f;->a:Ljava/lang/Boolean;

    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    if-eqz v0, :cond_5

    const-string v0, "TestBacktoFore"

    const-string v1, "turn to back"

    invoke-static {v0, v1}, Lcom/wqmobile/sdk/a/f;->a(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_1

    :cond_8
    sget-object v0, Lcom/wqmobile/sdk/a/f;->a:Ljava/lang/Boolean;

    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    if-eqz v0, :cond_5

    const-string v0, "TestBacktoFore"

    const-string v1, "not changed"

    invoke-static {v0, v1}, Lcom/wqmobile/sdk/a/f;->a(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_1
.end method
